*** VERSION 5.6.0 ***
[NeonServV5.git] / src / modules / global.mod / cmd_global_delbot.c
index 75d8e1cb25389efd881984d66322299930311477..101c59959c612d9f8ce53856f6345d79797a807b 100644 (file)
@@ -1,4 +1,4 @@
-/* cmd_global_delbot.c - NeonServ v5.4
+/* cmd_global_delbot.c - NeonServ v5.6
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -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);
 }