fixed #989cb8324ec8fe9caba511d89051552638dbc776
[NeonServV5.git] / src / cmd_neonhelp_next.c
index 666b1a57e5e25f869940b0cfcc75be6c694b3b1e..4cb7ee335ca40ca8cb78c5f5837a9b4d027b18f6 100644 (file)
@@ -87,7 +87,7 @@ CMD_BIND(neonhelp_cmd_next) {
     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) {
@@ -101,7 +101,7 @@ CMD_BIND(neonhelp_cmd_next) {
         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);