Explorar el Código

* Fix cmd_pls_chan causing bots to reset a channels settings when it already existed.

Bryan Drewery hace 17 años
padre
commit
18f2005d75
Se han modificado 2 ficheros con 1 adiciones y 2 borrados
  1. 1 0
      doc/UPDATES
  2. 0 2
      src/mod/channels.mod/cmdschan.c

+ 1 - 0
doc/UPDATES

@@ -17,6 +17,7 @@
 * Fix cmd_slowpart issues
 * Remove pscloak feature, it was too malicious, pointless and stupid.
 * Fix cmd_botset not setting default/global value on leaf bots when clearing a var (fixes #389)
+* Fix cmd_pls_chan causing bots to reset a channels settings when it already existed.
 
 1.2.16 - http://wraith.botpack.net/milestone/1.2.16
 * Add 'set altchars' so that alternative characters used for nicks can be changed. (fixes #418)

+ 0 - 2
src/mod/channels.mod/cmdschan.c

@@ -944,11 +944,9 @@ static void pls_chan(int idx, char *par, char *bot)
   }
     
   if (!bot && findchan_by_dname(chname)) {
-    putallbots(buf);
     dprintf(idx, "That channel already exists!\n");
     return;
   } else if ((chan = findchan(chname)) && !bot) {
-    putallbots(buf);
     dprintf(idx, "That channel already exists as %s!\n", chan->dname);
     return;
   } else if (strchr(CHANMETA, chname[0]) == NULL) {