

def get(self, name, create=False):
    if (not validate_chan(name)):
        return None
    ch = self.ctx.channels.get(name, None)
    if (ch or (not create)):
        return ch
    ch = Channel(name)
    ch.props_ts = self.ctx.current_ts
    self.ctx.channels[name] = ch
    return ch

dataset/ETHPy150Open mammon-ircd/mammon/mammon/channel.py ChannelManager.get/original