Conn now holds its own name #2
This commit is contained in:
parent
f70baa778c
commit
20b6ebd749
1 changed files with 2 additions and 2 deletions
4
bot.py
4
bot.py
|
@ -46,11 +46,11 @@ bot.conns = {}
|
||||||
try:
|
try:
|
||||||
for name, conf in bot.config['connections'].iteritems():
|
for name, conf in bot.config['connections'].iteritems():
|
||||||
if conf.get('ssl'):
|
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'],
|
port=conf.get('port', 6667), channels=conf['channels'],
|
||||||
ignore_certificate_errors=conf.get('ignore_cert', True))
|
ignore_certificate_errors=conf.get('ignore_cert', True))
|
||||||
else:
|
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'])
|
port=conf.get('port', 6667), channels=conf['channels'])
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print 'ERROR: malformed config file', e
|
print 'ERROR: malformed config file', e
|
||||||
|
|
Reference in a new issue