From 20b6ebd7494eb149fc43750fb4ad3e26a835d12b Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Mon, 7 May 2012 10:56:56 +1200 Subject: [PATCH] Conn now holds its own name #2 --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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