X-Git-Url: http://git.pk910.de/?p=NeonServV5.git;a=blobdiff_plain;f=src%2Fmodules%2Fglobal.mod%2Fcmd_global_addbot.c;h=dbe2956d4f4e6891e53548d00e8bb599f03c8655;hp=8bf8545d739686a561760d9ef0774551488fbc1d;hb=de5f0224c8b119f1be15457262bd6e66f160657f;hpb=9f5af1bc8ff4e8fc9c28433c76a890a990dd0ae5 diff --git a/src/modules/global.mod/cmd_global_addbot.c b/src/modules/global.mod/cmd_global_addbot.c index 8bf8545..dbe2956 100644 --- a/src/modules/global.mod/cmd_global_addbot.c +++ b/src/modules/global.mod/cmd_global_addbot.c @@ -26,18 +26,18 @@ CMD_BIND(global_cmd_addbot) { MYSQL_RES *res; int botid; if((botid = resolve_botalias(argv[1])) == -1) { - reply(getTextBot(), user, "NS_SETBOT_INVALID_CLASS", argv[1]); + reply(textclient, user, "NS_SETBOT_INVALID_CLASS", argv[1]); return; } printf_mysql_query("SELECT `id` FROM `bots` WHERE `nick` = '%s'", escape_string(argv[0])); res = mysql_use(); if(mysql_fetch_row(res)) { - reply(getTextBot(), user, "NS_ADDBOT_EXISTING", argv[0]); + reply(textclient, user, "NS_ADDBOT_EXISTING", argv[0]); return; } printf_mysql_query("INSERT INTO `bots` (`nick`, `botclass`) VALUES ('%s', '%d')", escape_string(argv[0]), botid); botid = (int) mysql_insert_id(get_mysql_conn()); - reply(getTextBot(), user, "NS_ADDBOT_DONE", argv[0], botid); + reply(textclient, user, "NS_ADDBOT_DONE", argv[0], botid); logEvent(event); }