removed getTextBot() function and added textbot parameter to the CMD_BIND header...
[NeonServV5.git] / src / modules / global.mod / cmd_global_reconnect.c
index 254fa471f3c3561670b28c2874d7d7607720df15..99197a9b1313b2034799281d3f1f0181f88ab6e1 100644 (file)
@@ -29,7 +29,7 @@ CMD_BIND(global_cmd_reconnect) {
         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;
         }
         botid = atoi(row[0]);
@@ -44,6 +44,6 @@ CMD_BIND(global_cmd_reconnect) {
         disconnect_socket(client);
         connect_socket(client);
     }
-    reply(getTextBot(), user, "NS_RECONNECT_DONE");
+    reply(textclient, user, "NS_RECONNECT_DONE");
     logEvent(event);
 }