Explorar o código

* Help fix excess floods

Bryan Drewery %!s(int64=16) %!d(string=hai) anos
pai
achega
bf1841d94d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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;