Răsfoiți Sursa

* Ported [2568] to 1.2.9 (fixes #191, segfault in cmd_slowpart)

svn: 2717
Bryan Drewery 20 ani în urmă
părinte
comite
54084b5d24
2 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/mod/channels.mod/cmdschan.c

+ 1 - 0
doc/UPDATES

@@ -61,6 +61,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Fixed bots requesting op in chans they don't have access to. (fixes #196)
 * Fixed bots requesting op in chans they don't have access to. (fixes #196)
 * Fixed a startup segfault. (fixes #195)
 * Fixed a startup segfault. (fixes #195)
 * Unsetting auth-prefix disables authing/cmds.
 * Unsetting auth-prefix disables authing/cmds.
+* Fixed segfault in cmd_slowpart (#191)
 
 
 1.2.8
 1.2.8
 * Fixed [bot]* cmds depending on case of botnicks.
 * Fixed [bot]* cmds depending on case of botnicks.

+ 1 - 1
src/mod/channels.mod/cmdschan.c

@@ -599,7 +599,7 @@ static void cmd_slowpart(int idx, char *par)
     return;
     return;
   }
   }
   if (!(chan = findchan_by_dname(chname))) {
   if (!(chan = findchan_by_dname(chname))) {
-    dprintf(idx, "Not on %s\n", chan->dname);
+    dprintf(idx, "No such channel %s\n", chname);
     return;
     return;
   }
   }
   remove_channel(chan);
   remove_channel(chan);