def doMode(self, irc, msg):
        channel = msg.args[0]
        if ircutils.isChannel(channel): # There can be user modes, as well.
            try:
                chan = self.channels[channel]
            except __HOLE__:
                chan = ChannelState()
                self.channels[channel] = chan
            chan.doMode(msg)
dataset/ETHPy150Open ProgVal/Limnoria/src/irclib.py/IrcState.doMode