*** VERSION 5.5.0 ***
[NeonServV5.git] / src / modules / global.mod / cmd_global_addbot.c
index 1783834107ae5fab03b822e8d78746b5836d7288..7b7e3ea1f5a87786425488a3adbc7c4c3963742a 100644 (file)
@@ -1,4 +1,4 @@
-/* cmd_global_addbot.c - NeonServ v5.3
+/* cmd_global_addbot.c - NeonServ v5.5
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -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);
 }