Преглед изворни кода

* The mode queue being flushed could cause excess flood, reverted back to eggdrop code for flushing the mode queue.

svn: 1747
Bryan Drewery пре 21 година
родитељ
комит
3dc80dfc59
2 измењених фајлова са 4 додато и 1 уклоњено
  1. 1 0
      doc/UPDATES
  2. 3 1
      src/mod/irc.mod/mode.c

+ 1 - 0
doc/UPDATES

@@ -11,6 +11,7 @@ Lines prefixxed with '-' were disabled before release and are not finishsed.
 * Added some responses/cloaks
 * Fixed '+ban' not showing up in help system.
 * Fixed double cmd log with cmd_whom.
+* The mode queue being flushed could cause excess flood, reverted back to eggdrop code for flushing the mode queue.
 
 1.2.1
 

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

@@ -299,11 +299,13 @@ flush_mode(struct chanset_t *chan, int pri)
   }
   if (out[0]) {
     if (pri == QUICK) {
+/* floods too much
       char outbuf[201] = "";
 
       sprintf(outbuf, "MODE %s %s\r\n", chan->name, out);
       tputs(serv, outbuf, strlen(outbuf));
-      /* dprintf(DP_MODE, "MODE %s %s\n", chan->name, out); */
+*/
+      dprintf(DP_MODE, "MODE %s %s\n", chan->name, out);
     } else
       dprintf(DP_SERVER, "MODE %s %s\n", chan->name, out);
   }