*** VERSION 5.5.0 ***
[NeonServV5.git] / src / modules / funcmd.mod / cmd_funcmds.c
index 76157d218359841a3017b973460387528eb2f13a..67b4153b77358d5d1eb7c1ead9f06dbd0e2a8dff 100644 (file)
@@ -1,4 +1,4 @@
-/* cmd_funcmds.c - NeonServ v5.4
+/* cmd_funcmds.c - NeonServ v5.5
  * Copyright (C) 2011-2012  Philipp Kreil (pk910)
  * 
  * This program is free software: you can redistribute it and/or modify
@@ -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; \