mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-10-08 04:47:23 +02: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):
|
def doMode(self, irc, msg):
|
||||||
channel = msg.args[0]
|
channel = msg.args[0]
|
||||||
if ircutils.isChannel(channel): # There can be user modes, as well.
|
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)
|
chan.doMode(msg)
|
||||||
|
|
||||||
def do324(self, irc, msg):
|
def do324(self, irc, msg):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user