Mercurial > hg > nnchat
diff nnchat.c @ 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 | 1f4def71b836 |
children | cbbe2e797f55 |
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;