removed getTextBot() function and added textbot parameter to the CMD_BIND header...
[NeonServV5.git] / src / modules / funcmd.mod / cmd_funcmds.c
index 76157d218359841a3017b973460387528eb2f13a..010a070a0f31acf8bc3c7cc63a0bb334aedf0abb 100644 (file)
@@ -64,7 +64,7 @@ struct current_funcmd_header {
 static struct current_funcmd_header current_funcmd;
 
 #define FUNCMD_HEADER \
-current_funcmd.client = getTextBot(); \
+current_funcmd.client = textclient; \
 current_funcmd.user = user; \
 current_funcmd.chan = chan; \
 {\
@@ -74,7 +74,7 @@ current_funcmd.chan = chan; \
     res = mysql_use(); \
     row = mysql_fetch_row(res); \
     if(!row || !strcmp(row[0], "0")) { \
-        reply(getTextBot(), user, "NS_FUN_DISABLED", chan->name); \
+        reply(textclient, user, "NS_FUN_DISABLED", chan->name); \
         return; \
     } else if(!strcmp(row[0], "1")) \
         current_funcmd.send_notice = 1; \