Ver Fonte

* Help fix excess floods

Bryan Drewery há 16 anos atrás
pai
commit
bf1841d94d
1 ficheiros alterados com 2 adições e 0 exclusões
  1. 2 0
      src/mod/irc.mod/chan.c

+ 2 - 0
src/mod/irc.mod/chan.c

@@ -1322,6 +1322,8 @@ do_take(struct chanset_t *chan)
     *(work + work_len++) = '\n';
     work[work_len] = 0;
 
+    // Prevent excess flood
+    if (!HAVE_F1) usleep(1000 * 500);
     if (++lines >= max_lines) {
       tputs(serv, work, work_len);
       work[0] = 0;