}
}
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) {
- reply(getTextBot(), user, "NH_NEXT_NONE");
+ reply(textclient, user, "NH_NEXT_NONE");
return;
}
struct NeonHelpNode *helpnode, *next_helpnode = NULL;
}
}
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;
- 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';
- reply(getTextBot(), user, " %s", b);
+ reply(textclient, user, " %s", b);
if(a) {
*a = '\n';
b = a+1;