Explorar o código

* Port [3677] to 1.2.15
* Fix bans not being removed from channels when removed from bot. (fixes #352)



svn: 3678

Bryan Drewery %!s(int64=18) %!d(string=hai) anos
pai
achega
584ebe1898
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/mod/share.mod/share.c

+ 1 - 0
doc/UPDATES

@@ -9,6 +9,7 @@
 * Add more 'responses' (ie, kicks reasons)
 * Added new chanset flag '+knock' which will make +y bots auto invite USERS. (No flag restrictions currently)
 * Bots now check their own hostmask before opping or requesting assistance to join a channel
+* Fix bans not being removed from channels when removed from bot. (fixes #352)
 
 1.2.14 - http://wraith.botpack.net/milestone/1.2.14
 * Fix another bug in shell functions. (fixes #321)

+ 1 - 1
src/mod/share.mod/share.c

@@ -675,7 +675,7 @@ static void share_mns_mask(int idx, char *par)
           channel_list = (type == 'b' ? chan->channel.ban : type == 'e' ? 
                           chan->channel.exempt : chan->channel.invite);
 
-          if (channel_list && !ismasked(channel_list, par))
+          if (channel_list && ismasked(channel_list, par))
             add_delay(chan, '-', type, par);
         }
       }