Explorar el Código

* enforce_bitch() after a mass op in a +nomop chan.

svn: 801
Bryan Drewery hace 22 años
padre
commit
f3217d339c
Se han modificado 3 ficheros con 3 adiciones y 1 borrados
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/mod/irc.mod/chan.c
  3. 1 0
      src/mod/irc.mod/mode.c

+ 1 - 0
doc/UPDATES

@@ -9,6 +9,7 @@ This is a summary of ChangeLog basically.
 6.Added AUTH cmds: md5, sha1.
 7.First time logins were broken.
 8.Cleaned up some code here and there (small fixes).
+9.With +nomop set in a chan, a mass op will trigger enforce_bitch() now, regardless of +bitch.
 
 1.1.3
 1.Fixed a very fatal bug with channel ctcps.

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

@@ -981,7 +981,7 @@ void check_this_user(char *hand, int delete, char *host)
     }
 }
 
-void enforce_bitch(struct chanset_t *chan) {
+static void enforce_bitch(struct chanset_t *chan) {
   if (!chan || !me_op(chan)) return;
   priority_do(chan, 1, PRIO_DEOP);
 }

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

@@ -1299,6 +1299,7 @@ static int gotmode(char *from, char *msg)
               }
             }
           }
+          enforce_bitch(chan);			/* deop quick! */
         }
       }