diff options
Diffstat (limited to '')
-rw-r--r-- | handle.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/handle.c b/handle.c index a090ca2..84a2927 100644 --- a/handle.c +++ b/handle.c @@ -383,8 +383,7 @@ static void handleNick(struct Message *msg) { set(&self.nick, msg->params[0]); uiRead(); // Update prompt. } - uint id; - while (None != (id = completeID(msg->nick))) { + for (uint id; (id = completeID(msg->nick));) { if (!strcmp(idNames[id], msg->nick)) { set(&idNames[id], msg->params[0]); } @@ -404,8 +403,7 @@ static void handleNick(struct Message *msg) { static void handleQuit(struct Message *msg) { require(msg, true, 0); - uint id; - while (None != (id = completeID(msg->nick))) { + for (uint id; (id = completeID(msg->nick));) { urlScan(id, msg->nick, msg->params[0]); uiFormat( id, Cold, tagTime(msg), |