bantracker: When joining a channel, discard the ban list for that channel.

This commit is contained in:
Elián Hanisch 2011-06-18 23:14:35 -03:00
parent 8d61d972fd
commit ed91a8a426

View File

@ -697,9 +697,9 @@ class Bantracker(callbacks.Plugin):
else:
self.doLog(irc, channel,
'*** %s has joined %s\n' % (msg.prefix, channel))
if not channel in self.bans.keys():
self.bans[channel] = []
if msg.prefix.split('!', 1)[0] == irc.nick:
if msg.nick == irc.nick:
if channel in self.bans:
del self.bans[channel]
queue.queue(ircmsgs.mode(channel, 'b'))
nick = msg.nick.lower() or msg.prefix.lower().split('!', 1)[0]
self.nicks[nick] = msg.prefix.lower()