removed getTextBot() function and added textbot parameter to the CMD_BIND header...
[NeonServV5.git] / src / modules / global.mod / cmd_global_delbot.c
index 75d8e1cb25389efd881984d66322299930311477..b7fd3fc782427a8f9c989e4ca7b39c08efb846ae 100644 (file)
@@ -27,7 +27,7 @@ CMD_BIND(global_cmd_delbot) {
     printf_mysql_query("SELECT `id` FROM `bots` WHERE `nick` = '%s' OR `id` = '%s'", escape_string(argv[0]), escape_string(argv[0]));
     res = mysql_use();
     if((row = mysql_fetch_row(res)) == NULL) {
-        reply(getTextBot(), user, "NS_DELBOT_NOT_FOUND", argv[0]);
+        reply(textclient, user, "NS_DELBOT_NOT_FOUND", argv[0]);
         return;
     }
     int botid = atoi(row[0]);
@@ -40,6 +40,6 @@ CMD_BIND(global_cmd_delbot) {
             break;
         }
     }
-    reply(getTextBot(), user, "NS_DELBOT_DONE");
+    reply(textclient, user, "NS_DELBOT_DONE");
     logEvent(event);
 }