Explorar el Código

* Port [3282] to 1.2.14
* Fix bots asking for help to join channels they shouldn't even be in.



svn: 3283

Bryan Drewery hace 19 años
padre
commit
a290368c76
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      src/mod/irc.mod/irc.c

+ 4 - 0
src/mod/irc.mod/irc.c

@@ -729,6 +729,10 @@ request_op(struct chanset_t *chan)
 static void
 request_in(struct chanset_t *chan)
 {
+  /* Lag situation */
+  if (!shouldjoin(chan))
+    return;
+
   struct flag_record myfr = { FR_GLOBAL | FR_CHAN | FR_BOT, 0, 0, 0 };
 
   get_user_flagrec(conf.bot->u, &myfr, NULL);