reply(getTextBot(), user, "NH_NEXT_HEADER", next_helpnode->suppid, next_helpnode->user->nick);
char *a, *b = row2[0];
do {
- a = strstr("\n", b);
+ a = strstr(b, "\n");
if(a) *a = '\0';
reply(getTextBot(), user, " %s", b);
if(a) {
putsock(client, "MODE %s +v %s", row[0], next_helpnode->user->nick);
char sendbuf1[MAXLEN];
char sendbuf2[MAXLEN];
- char *join_now = (row[1] ? build_language_string(user, sendbuf2, "NH_NEXT_JOIN", row[1]) : "");
+ char *join_now = (row[1] ? build_language_string(user, sendbuf2, "NH_NEXT_JOIN", row[0]) : "");
putsock(client, "PRIVMSG %s :%s %s", next_helpnode->user->nick, build_language_string(user, sendbuf1, "NH_NEXT_HELPER", next_helpnode->suppid, user->auth, user->nick), join_now);
next_helpnode->status = 1;
printf_mysql_query("UPDATE `helpserv_requests` SET `status` = '1' WHERE `id` = '%d'", next_helpnode->suppid);