-/* cmd_global_setbot.c - NeonServ v5.3
+/* cmd_global_setbot.c - NeonServ v5.4
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
struct ClientSocket *client;
for(client = getBots(0, NULL); client; client = getBots(0, client)) {
if(client->clientid == atoi(bot[15])) {
- unbind_botwise_allcmd(client->clientid);
+ unbind_botwise_allcmd(0, client->clientid);
client->botid = val;
if(client->botid == 0) {
MYSQL_RES *res;
break;
}
}
- printf_mysql_query("UPDATE `bots` SET `prefered` = '%d' WHERE `id` = '%s'", val, bot[15]);
+ printf_mysql_query("UPDATE `bots` SET `textbot` = '%d' WHERE `id` = '%s'", val, bot[15]);
ret = 1;
}
reply(getTextBot(), user, "\002PREFERED \002 %s", get_language_string(user, (val ? "NS_SET_ON" : "NS_SET_OFF")));