Mercurial > hg > nnchat
changeset 301:388c22d6ab44
Closing PRV buffers should not depend on the user being in the internal userlist. Fixed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 11 Jun 2011 04:30:54 +0300 |
parents | 28adb25ca530 |
children | a3170f477ae2 |
files | nnchat.c |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/nnchat.c Sat Jun 11 03:57:01 2011 +0300 +++ b/nnchat.c Sat Jun 11 04:30:54 2011 +0300 @@ -889,9 +889,8 @@ else if (!strncasecmp(buf, "/close", 6)) { char *name = trimLeft(buf + 6); if (strlen(name) > 0) { - nn_user_t *user = nn_user_find(nnUsers, name); - if (user != NULL) { - nn_window_t *win = nn_find_window(user->name); + nn_window_t *win = nn_find_window(name); + if (win != NULL) { closeWindow(win); } else { printMsg(currWin, "No PRV query by name '%s'.\n", name);