Browse Source

* Don't EVOICE a user if they were devoiced by a bot

Bryan Drewery 16 năm trước cách đây
mục cha
commit
0e74c0c66f
2 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 1 0
      doc/UPDATES
  2. 2 2
      src/mod/irc.mod/mode.c

+ 1 - 0
doc/UPDATES

@@ -1,5 +1,6 @@
 * Fix case where bot would not get the +e and +I lists when getting opped.
 * Add chanset '+/-voicebitch' for a +bitch style enforcement over voices.
+* If a bot devoices a user in a +voice channel, the +y bot will no longer enforce this.
 
 1.3 - http://wraith.botpack.net/milestone/1.3
 * Binary / shell / startup changes

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

@@ -1441,8 +1441,8 @@ gotmode(char *from, char *msg)
                     /* if they arent +v|v and VOICER is m+ then EVOICE them */
                   } else {
                     /* FIXME: same thing here */
-                    if (!match_my_nick(nick) && channel_voice(chan) && 
-                        (glob_master(user) || chan_master(user) || glob_bot(user)) && 
+                    if (!match_my_nick(nick) && channel_voice(chan) && !glob_bot(user) &&
+                        (glob_master(user) || chan_master(user)) &&
                         rfc_casecmp(nick, mparam)) {
                       /* if the user is not +q set them norEVOICE. */
                       if (!chan_quiet(victim) && !(mv->flags & EVOICE)) {