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
/
NeonHelp.mod
/
cmd_neonhelp_next.c
diff --git
a/src/modules/NeonHelp.mod/cmd_neonhelp_next.c
b/src/modules/NeonHelp.mod/cmd_neonhelp_next.c
index a149dc65cb8ec7475e8a3c6b64de7b0d49b4e08c..775861ad005e55884fb7a858d06624b78098f001 100644
(file)
--- a/
src/modules/NeonHelp.mod/cmd_neonhelp_next.c
+++ b/
src/modules/NeonHelp.mod/cmd_neonhelp_next.c
@@
-53,11
+53,11
@@
CMD_BIND(neonhelp_cmd_next) {
}
}
if(!caccess) {
}
}
if(!caccess) {
- reply(
getTextBot()
, user, "MODCMD_ACCESS_DENIED");
+ reply(
textclient
, user, "MODCMD_ACCESS_DENIED");
return;
}
if(!(client->flags & SOCKET_HAVE_HELPNODE) || client->botclass_helpnode == NULL) {
return;
}
if(!(client->flags & SOCKET_HAVE_HELPNODE) || client->botclass_helpnode == NULL) {
- reply(
getTextBot()
, user, "NH_NEXT_NONE");
+ reply(
textclient
, user, "NH_NEXT_NONE");
return;
}
struct NeonHelpNode *helpnode, *next_helpnode = NULL;
return;
}
struct NeonHelpNode *helpnode, *next_helpnode = NULL;
@@
-78,18
+78,18
@@
CMD_BIND(neonhelp_cmd_next) {
}
}
if(!next_helpnode) {
}
}
if(!next_helpnode) {
- reply(
getTextBot()
, user, "NH_NEXT_NOT_FOUND");
+ reply(
textclient
, user, "NH_NEXT_NOT_FOUND");
return;
}
printf_mysql_query("SELECT `text` FROM `helpserv_requests` WHERE `id` = '%d'", next_helpnode->suppid);
res = mysql_use();
if (!(row2 = mysql_fetch_row(res))) return;
return;
}
printf_mysql_query("SELECT `text` FROM `helpserv_requests` WHERE `id` = '%d'", next_helpnode->suppid);
res = mysql_use();
if (!(row2 = mysql_fetch_row(res))) return;
- reply(
getTextBot()
, user, "NH_NEXT_HEADER", next_helpnode->suppid, next_helpnode->user->nick);
+ reply(
textclient
, user, "NH_NEXT_HEADER", next_helpnode->suppid, next_helpnode->user->nick);
char *a, *b = row2[0];
do {
a = strstr(b, "\n");
if(a) *a = '\0';
char *a, *b = row2[0];
do {
a = strstr(b, "\n");
if(a) *a = '\0';
- reply(
getTextBot()
, user, " %s", b);
+ reply(
textclient
, user, " %s", b);
if(a) {
*a = '\n';
b = a+1;
if(a) {
*a = '\n';
b = a+1;