Selaa lähdekoodia

* Ported [2677] to 1.2.9 (Segfault from CHANFIX/server modes (fixes #25))

svn: 2678
Bryan Drewery 20 vuotta sitten
vanhempi
commit
7f8e14a31c
2 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 1 0
      doc/UPDATES
  2. 2 1
      src/mod/irc.mod/mode.c

+ 1 - 0
doc/UPDATES

@@ -51,6 +51,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * There is now a 'datadir' option in the binary config. The tempdir is still automatically found. (#162)
 * Fixed ACTION ctcp log msg to be more standard. (fixes #138)
 * Added set var 'notify-time' to change the interval for regaining nick. (fixes #182)
+* Fixed segfault caused by CHANFIX/server modes. (fixes #25)
 
 1.2.8
 * Fixed [bot]* cmds depending on case of botnicks.

+ 2 - 1
src/mod/irc.mod/mode.c

@@ -1000,7 +1000,8 @@ gotmode(char *from, char *msg)
           dprintf(DP_MODE, "WHO %s\n", nick);
           return 0;
         }
-      }
+      } else
+        nick = splitnick(&from);
 
       chg = newsplit(&msg);
       reversing = 0;