projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed getTextBot() function and added textbot parameter to the CMD_BIND header...
[NeonServV5.git]
/
src
/
modules
/
global.mod
/
cmd_global_extscript.c
diff --git
a/src/modules/global.mod/cmd_global_extscript.c
b/src/modules/global.mod/cmd_global_extscript.c
index 513ef07b1219b7e911df2e1ed399e6416fd6a4dc..1cc8b65f30e75c4886fc861d1da801b55c7ff188 100644
(file)
--- a/
src/modules/global.mod/cmd_global_extscript.c
+++ b/
src/modules/global.mod/cmd_global_extscript.c
@@
-56,7
+56,7
@@
CMD_BIND(global_cmd_extscript) {
row = mysql_fetch_row(res);
if(!row || !strcmp(row[0], "0")) {
//disabled
row = mysql_fetch_row(res);
if(!row || !strcmp(row[0], "0")) {
//disabled
- reply(
getTextBot()
, user, "NS_FUN_DISABLED", chan->name);
+ reply(
textclient
, user, "NS_FUN_DISABLED", chan->name);
return;
} else if(!strcmp(row[0], "2"))
answere_channel = 1;
return;
} else if(!strcmp(row[0], "2"))
answere_channel = 1;
@@
-130,7
+130,7
@@
CMD_BIND(global_cmd_extscript) {
return;
}
cache->client = client;
return;
}
cache->client = client;
- cache->textclient =
getTextBot()
;
+ cache->textclient =
textclient
;
cache->event = event;
cache->user = user;
cache->chan = chan;
cache->event = event;
cache->user = user;
cache->chan = chan;