

def __init__(self, config):
    if (not config['host']):
        raise SystemExit('Error: IRC controller needs to be configured with a hostname')
    if (not config['nick']):
        raise SystemExit('Error: IRC controller needs to be configured with a nick')
    print(('Connecting to %s:%s as %s' % (config['host'], config['port'], config['nick'])))
    irc.bot.SingleServerIRCBot.__init__(self, [(config['host'], config['port'])], config['nick'], config['realname'])
    channels = config['channels']
    if channels:
        self.channel = channels
        print(('Joining Channels: %s' % self))
    self.config = config

dataset/ETHPy150Open priestc/giotto/giotto/controllers/irc_.py IrcBot.__init__/VarMisuse@130/227 `channels`->`self`