Sfoglia il codice sorgente

* bans matching *linked* bots are now removed no matter what

svn: 1598
Bryan Drewery 21 anni fa
parent
commit
bf945eab70
2 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 1 0
      doc/UPDATES
  2. 2 2
      src/mod/irc.mod/mode.c

+ 1 - 0
doc/UPDATES

@@ -9,6 +9,7 @@ This is a summary of ChangeLog basically.
 * Telnet host matching is now fixed to match these hosts against the userfile (ONLY FOR ACCESS):
   -telnet!telnet@ip -telnet!telnet@HOST -telnet!IDENT@IP -telnet!IDENT@HOST
 * Fixed cmd_comment bug with changing comment on lower level users.
+* Bots now unban bans that match *linked* bots, +m bans besides this will not be unset auto.
 
 
 1.2

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

@@ -684,8 +684,8 @@ got_ban(struct chanset_t *chan, memberlist *m, char *mask, char *isserver)
       if (wild_match(mask, s1) && !isexempted(chan, s1)) {
         if (m2->user || (!m2->user && (m2->user = get_user_by_host(s1)))) {
           get_user_flagrec(m2->user, &victim, chan->dname);
-          if (chk_op(victim, chan) && !chan_master(user) && !glob_master(user) &&
-              !glob_bot(user) && !isexempted(chan, s1)) {
+          if (((chk_op(victim, chan) && !chan_master(user) && !glob_master(user) &&
+              !glob_bot(user)) || (m2->user->bot && findbot(m2->user->handle))) && !isexempted(chan, s1)) {
             /* if (target_priority(chan, m, 0)) */
             add_mode(chan, '-', 'b', mask);
             return;