projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
*** VERSION 5.5.0 ***
[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 2e2a2d1e4948171c78c790d1d2fccd23a9629565..2499e362404292731b031a32837ce5edaf3bd30f 100644
(file)
--- a/
src/modules/NeonHelp.mod/cmd_neonhelp_next.c
+++ b/
src/modules/NeonHelp.mod/cmd_neonhelp_next.c
@@
-1,4
+1,4
@@
-/* cmd_neonhelp_next.c - NeonServ v5.
3
+/* cmd_neonhelp_next.c - NeonServ v5.
5
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
@@
-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;