瀏覽代碼

* 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
 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);