Fix compatibility with Python 2.6 (does not support the set syntax).

This commit is contained in:
Valentin Lorentz 2014-01-26 21:49:28 +01:00
parent c872cd793f
commit 0d4784cf4a
1 changed files with 2 additions and 2 deletions

View File

@ -628,9 +628,9 @@ class Irc(IrcCommandDispatcher):
__firewalled__ = {'die': None,
'feedMsg': None,
'takeMsg': None,}
_nickSetters = {'001', '002', '003', '004', '250', '251', '252',
_nickSetters = set(['001', '002', '003', '004', '250', '251', '252',
'254', '255', '265', '266', '372', '375', '376',
'333', '353', '332', '366', '005'}
'333', '353', '332', '366', '005'])
# We specifically want these callbacks to be common between all Ircs,
# that's why we don't do the normal None default with a check.
def __init__(self, network, callbacks=_callbacks):