Yes, we do.

This commit is contained in:
Jeremy Fincher 2004-12-07 00:27:47 +00:00
parent ab217fc3fd
commit 58c631bd8f
1 changed files with 5 additions and 1 deletions

View File

@ -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):