mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-20 17:53:03 +01:00
Yes, we do.
This commit is contained in:
parent
ab217fc3fd
commit
58c631bd8f
@ -464,7 +464,11 @@ class IrcState(IrcCommandDispatcher):
|
||||
def doMode(self, irc, msg):
|
||||
channel = msg.args[0]
|
||||
if ircutils.isChannel(channel): # There can be user modes, as well.
|
||||
chan = self.channels[channel] # ??? Do we need to catch KeyError?
|
||||
try:
|
||||
chan = self.channels[channel]
|
||||
except KeyError:
|
||||
chan = ChannelState()
|
||||
self.channels[channel] = chan
|
||||
chan.doMode(msg)
|
||||
|
||||
def do324(self, irc, msg):
|
||||
|
Loading…
Reference in New Issue
Block a user