Преглед на файлове

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



svn: 3283

Bryan Drewery преди 19 години
родител
ревизия
a290368c76
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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
 static void
 request_in(struct chanset_t *chan)
 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 };
   struct flag_record myfr = { FR_GLOBAL | FR_CHAN | FR_BOT, 0, 0, 0 };
 
 
   get_user_flagrec(conf.bot->u, &myfr, NULL);
   get_user_flagrec(conf.bot->u, &myfr, NULL);