mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
core: Initialize list of bans when joining a channel.
This commit is contained in:
parent
0418a44d2a
commit
6a06ca9911
@ -506,6 +506,16 @@ class IrcState(IrcCommandDispatcher):
|
|||||||
self.channels[channel] = chan
|
self.channels[channel] = chan
|
||||||
# I don't know why this assert was here.
|
# I don't know why this assert was here.
|
||||||
#assert msg.nick == irc.nick, msg
|
#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):
|
def doMode(self, irc, msg):
|
||||||
channel = msg.args[0]
|
channel = msg.args[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user