diff --git a/bot.py b/bot.py index 1aea8bc..d79b4e7 100755 --- a/bot.py +++ b/bot.py @@ -46,11 +46,11 @@ bot.conns = {} try: for name, conf in bot.config['connections'].iteritems(): if conf.get('ssl'): - bot.conns[name] = SSLIRC(conf['server'], conf['nick'], conf=conf, + bot.conns[name] = SSLIRC(name, conf['server'], conf['nick'], conf=conf, port=conf.get('port', 6667), channels=conf['channels'], ignore_certificate_errors=conf.get('ignore_cert', True)) else: - bot.conns[name] = IRC(conf['server'], conf['nick'], conf=conf, + bot.conns[name] = IRC(name, conf['server'], conf['nick'], conf=conf, port=conf.get('port', 6667), channels=conf['channels']) except Exception, e: print 'ERROR: malformed config file', e