Explorar o código

* Ported [2710] to 1.2.9 (fixes #196)

svn: 2711
Bryan Drewery %!s(int64=20) %!d(string=hai) anos
pai
achega
73182bc48d
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/mod/irc.mod/irc.c

+ 1 - 0
doc/UPDATES

@@ -58,6 +58,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Updated CREDITS/cmd_about
 * Fixed some startup segfaults resulting from bugs in glibc.
 * Fixed bot going floodless when it wasn't granted it.
+* Fixed bots requesting op in chans they don't have access to. (fixes #196)
 
 1.2.8
 * Fixed [bot]* cmds depending on case of botnicks.

+ 1 - 1
src/mod/irc.mod/irc.c

@@ -624,7 +624,7 @@ request_op(struct chanset_t *chan)
   time_t n = now;
   struct flag_record myfr = { FR_GLOBAL | FR_CHAN, 0, 0, 0 };
 
-  get_user_flagrec(conf.bot->u, &myfr, NULL);
+  get_user_flagrec(conf.bot->u, &myfr, chan->dname);
 
   if (!chk_op(myfr, chan) || glob_kick(myfr) || chan_kick(myfr)) {
     putlog(LOG_GETIN, "*", "Not requesting op for %s - I do not have access to that channel.", chan->dname);