Skip to content

Commit

Permalink
core: Initialize list of bans when joining a channel.
Browse files Browse the repository at this point in the history
  • Loading branch information
progval committed Dec 23, 2012
1 parent 0418a44 commit 6a06ca9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/irclib.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,16 @@ def doJoin(self, irc, msg):
self.channels[channel] = chan
# I don't know why this assert was here.
#assert msg.nick == irc.nick, msg
if msg.nick == irc.nick:
# Ask for the ban list
for channel in msg.args[0].split(','):
irc.queueMsg(ircmsgs.mode(channel, '+b'))

def do367(self, irc, msg):
# Example:
# :server 367 user #chan some!random@user evil!channel@op 1356276459
state = self.channels[msg.args[1]]
state.bans.add(msg.args[2])

def doMode(self, irc, msg):
channel = msg.args[0]
Expand Down

0 comments on commit 6a06ca9

Please sign in to comment.