Mercurial > hg > nnchat
comparison 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 |
comparison
equal
deleted
inserted
replaced
338:e6bb187a3153 | 339:058e3633bd73 |
---|---|
978 else if (!strncasecmp(buf, "/who", 4)) { | 978 else if (!strncasecmp(buf, "/who", 4)) { |
979 /* Alias /who to /listallusers */ | 979 /* Alias /who to /listallusers */ |
980 snprintf(tmpBuf, sizeof(tmpBuf), "/listallusers"); | 980 snprintf(tmpBuf, sizeof(tmpBuf), "/listallusers"); |
981 buf = tmpBuf; | 981 buf = tmpBuf; |
982 } | 982 } |
983 else if (currWin != chatWindows[0]) { | 983 |
984 if (currWin != chatWindows[0]) { | |
984 if (currWin->id != NULL) { | 985 if (currWin->id != NULL) { |
985 snprintf(tmpBuf, sizeof(tmpBuf), "/prv -to %s -msg %s", currWin->id, buf); | 986 snprintf(tmpBuf, sizeof(tmpBuf), "/prv -to %s -msg %s", currWin->id, buf); |
986 buf = tmpBuf; | 987 buf = tmpBuf; |
987 } else { | 988 } else { |
988 printMsgQ(NULL, "No target set, exiting prv mode.\n"); | 989 printMsgQ(NULL, "No target set, exiting prv mode.\n"); |