Przeglądaj źródła

Respect devoices from other bots (#48)

Bryan Drewery 14 lat temu
rodzic
commit
a849b0ab29
2 zmienionych plików z 4 dodań i 2 usunięć
  1. 2 0
      doc/UPDATES
  2. 2 2
      src/mod/irc.mod/mode.c

+ 2 - 0
doc/UPDATES

@@ -1,3 +1,5 @@
+* Bots now again respect devoices made by other bots and will not revoice those users.
+
 1.4.0 - http://wraith.botpack.net/milestone/1.4.0
   * Updated server list, 'set -yes servers -' and 'set -yes servers6 -' to get new list.
   * Change +bitch reaction to use normal queue for deopping opper/opped clients

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

@@ -1510,8 +1510,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_bot(user) &&
-                        (glob_master(user) || chan_master(user)) &&
+                    if (!match_my_nick(nick) && channel_voice(chan) &&
+                        (glob_master(user) || chan_master(user) || glob_bot(user)) &&
                         rfc_casecmp(nick, mparam)) {
                       /* if the user is not +q set them norEVOICE. */
                       if (!chan_quiet(victim)) {