changeset 339:058e3633bd73

Fix a think-o in the logic of processing user commands / messages in case of different window buffers.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 23 Jun 2011 00:49:26 +0300
parents e6bb187a3153
children cbbe2e797f55
files nnchat.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nnchat.c	Thu Jun 23 00:48:24 2011 +0300
+++ b/nnchat.c	Thu Jun 23 00:49:26 2011 +0300
@@ -980,7 +980,8 @@
         snprintf(tmpBuf, sizeof(tmpBuf), "/listallusers");
         buf = tmpBuf;
     }
-    else if (currWin != chatWindows[0]) {
+
+    if (currWin != chatWindows[0]) {
         if (currWin->id != NULL) {
             snprintf(tmpBuf, sizeof(tmpBuf), "/prv -to %s -msg %s", currWin->id, buf);
             buf = tmpBuf;