Explorar o código

* React to non-users for 'mop/mdop' and +protect

Bryan Drewery %!s(int64=16) %!d(string=hai) anos
pai
achega
45449be1fb
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/mod/irc.mod/mode.c

+ 1 - 0
doc/UPDATES

@@ -1,5 +1,6 @@
 * Add chanset '+/-protect' which will set +botbitch and mass deop if any takeover is detected.
 * Add chanset 'protect-backup' which will optionally set +backup in the event of a takeover with +protect.
+* Channel settings 'mop' and 'mdop' now react to non-users.
 
 1.3 - http://wraith.botpack.net/milestone/1.3
 * Binary / shell / startup changes

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

@@ -1084,7 +1084,7 @@ gotmode(char *from, char *msg)
       if (me_op(chan)) {
         char tmp[1024] = "";
 
-        if (role && u && !u->bot) {
+        if (role && (!u || (u && !u->bot))) {
           if (m && deops >= 3) {
             if (chan->mdop) {
               if (role < 5 && !chan_sentkick(m)) {