Explorar el Código

Fix bot not auto-opping after just connecting.

Bryan Drewery hace 10 años
padre
commit
31a9bca162
Se han modificado 2 ficheros con 4 adiciones y 0 borrados
  1. 1 0
      doc/UPDATES.md
  2. 3 0
      src/mod/irc.mod/mode.cc

+ 1 - 0
doc/UPDATES.md

@@ -8,6 +8,7 @@
   * Fix binary compat issue causing ptrace permission errors on Linux 3.4+
   * Fix ban/exempt/invite masking not working with 10-char idents.
   * Fallback to ISON if the server falsely claims to support MONITOR.
+  * Fix bot not auto-opping after just connecting.
 
 # 1.4.6
   * Disable demo TCL support by default to prevent confusion during build.

+ 3 - 0
src/mod/irc.mod/mode.cc

@@ -108,6 +108,9 @@ do_op(memberlist *m, struct chanset_t *chan, bool delay, bool force)
     add_mode(chan, '+', 'o', m);
   } else if (!connect_bursting) {
     add_cookie(chan, m);
+  } else {
+    /* Failed to give the mode, so requeue it. */
+    do_op(m, chan, 1, 0);
   }
   return 1;
 }