removed getTextBot() function and added textbot parameter to the CMD_BIND header...
[NeonServV5.git] / src / modules / global.mod / cmd_global_god.c
index 441d0e7f3edbd1bedf523e724b96129a0873754c..14f9540830311981431b4f08796977a5047a470f 100644 (file)
@@ -28,26 +28,26 @@ CMD_BIND(global_cmd_god) {
                 printf_mysql_query("UPDATE `users` SET `user_god` = '0' WHERE `user_user` = '%s'", escape_string(user->auth));
                 user->flags &= ~USERFLAG_GOD_MODE;
             }
-            reply(getTextBot(), user, "NS_GOD_OFF");
+            reply(textclient, user, "NS_GOD_OFF");
         } else if(!strcmp(argv[0], "1") || !stricmp(argv[0], "on") || !stricmp(argv[0], get_language_string(user, "NS_SET_ON"))) {
             if(!isGodMode(user)) {
                 printf_mysql_query("UPDATE `users` SET `user_god` = '1' WHERE `user_user` = '%s'", escape_string(user->auth));
                 user->flags |= USERFLAG_GOD_MODE;
             }
-            reply(getTextBot(), user, "NS_GOD_ON");
+            reply(textclient, user, "NS_GOD_ON");
         } else {
-            reply(getTextBot(), user, "NS_SET_INVALID_BOOLEAN", argv[0]);
+            reply(textclient, user, "NS_SET_INVALID_BOOLEAN", argv[0]);
             return;
         }
     } else {
         if(isGodMode(user)) {
             printf_mysql_query("UPDATE `users` SET `user_god` = '0' WHERE `user_user` = '%s'", escape_string(user->auth));
             user->flags &= ~USERFLAG_GOD_MODE;
-            reply(getTextBot(), user, "NS_GOD_OFF");
+            reply(textclient, user, "NS_GOD_OFF");
         } else {
             printf_mysql_query("UPDATE `users` SET `user_god` = '1' WHERE `user_user` = '%s'", escape_string(user->auth));
             user->flags |= USERFLAG_GOD_MODE;
-            reply(getTextBot(), user, "NS_GOD_ON");
+            reply(textclient, user, "NS_GOD_ON");
         }
     }
 }
\ No newline at end of file