Browse Source

* Fix chanint 'flood-exempt' not exempting ops when set to 'voice'

Bryan Drewery 17 years ago
parent
commit
f2b8b906f0
2 changed files with 2 additions and 1 deletions
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/mod/irc.mod/chan.c

+ 1 - 0
doc/UPDATES

@@ -38,6 +38,7 @@
 * Fix aliases not properly indicating bad command on leaf bots (fixes #297)
 * Fix botlink problems when hub and leaf nicks are long
 * Fix (+|-)(ban|exempt|invite) commands to properly handle if the channel is given first so that a #chan!*@* ban is not created.
+* Fix chanint 'flood-exempt' not exempting ops when set to 'voice'
 
 1.2.16 - http://wraith.botpack.net/milestone/1.2.16
 * Add 'set altchars' so that alternative characters used for nicks can be changed. (fixes #418)

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

@@ -455,7 +455,7 @@ static bool detect_chan_flood(char *floodnick, char *floodhost, char *from,
       ((which != FLOOD_DEOP) && (which != FLOOD_KICK) && 
        ( (chk_noflood(fr) || 
          (m && chan->flood_exempt_mode == FLOOD_EXEMPT_OP && chan_hasop(m)) || 
-         (m && chan->flood_exempt_mode == FLOOD_EXEMPT_VOICE && chan_hasvoice(m)) )
+         (m && chan->flood_exempt_mode == FLOOD_EXEMPT_VOICE && (chan_hasvoice(m) || chan_hasop(m))) )
       )))
     return 0;