X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2FDBHelper.c;h=56bd924e41f2bb2c2e22add62265ad505ef0f2c4;hp=20037156cab4819c9c22bd14572393f29170f8e9;hb=0def65a9df6d9a295c064cba58af229b326f39fe;hpb=d2f5566813cad3f8e9e5d05bd1a4f768ec079050 diff --git a/src/DBHelper.c b/src/DBHelper.c index 2003715..56bd924 100644 --- a/src/DBHelper.c +++ b/src/DBHelper.c @@ -314,7 +314,7 @@ void deleteUser(int userid) { //unregister channel printf_mysql_query("SELECT `botid`, `channel_name` FROM `bot_channels` LEFT JOIN `channels` ON `chanid` = `channel_id` WHERE `chanid` = '%s' AND `suspended` = '0'", row[1]); res2 = mysql_use(); - while((row2 = mysql_fetch_row(res))) { + while((row2 = mysql_fetch_row(res2))) { struct ClientSocket *bot; int clientid = atoi(row2[0]); for(bot = getBots(SOCKET_FLAG_READY, NULL); bot; bot = getBots(SOCKET_FLAG_READY, bot)) {