From: pk910 Date: Tue, 23 Aug 2011 23:13:43 +0000 (+0200) Subject: fixed upall channel loop X-Git-Tag: v5.3~489 X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=commitdiff_plain;h=79aac160f0bd604ef6810e58d73a1e758da06cac fixed upall channel loop --- diff --git a/cmd_neonserv_upall.c b/cmd_neonserv_upall.c index 4cb2060..18d4db3 100644 --- a/cmd_neonserv_upall.c +++ b/cmd_neonserv_upall.c @@ -15,7 +15,7 @@ static CMD_BIND(neonserv_cmd_upall) { return; userid = atoi(row[0]); printf_mysql_query("SELECT `chanuser_access`, `channel_getop`, `channel_getvoice`, `channel_name`, `channel_id` FROM `chanusers` LEFT JOIN `channels` ON `chanuser_cid` = `channel_id` WHERE `chanuser_cid` = '%s'", user->auth); - while ((row = mysql_fetch_row(res)) == NULL) { + while ((row = mysql_fetch_row(res)) != NULL) { chan = getChanByName(row[3]); if(!chan) continue; printf_mysql_query("SELECT `botid` FROM `bot_channels` LEFT JOIN `bots` ON `bot_channels`.`botid` = `bots`.`id` WHERE `chanid` = '%s' AND `botclass` = '%d'", row[4], client->botid);