Fix for Slack.

This commit is contained in:
Valentin Lorentz 2017-08-23 18:51:54 +02:00
parent d7902c921f
commit bdbc79bfc6

View File

@ -433,7 +433,7 @@ class IrcState(IrcCommandDispatcher, log.Firewalled):
Supported user and channel modes are cached"""
# msg.args = [nick, server, ircd-version, umodes, modes,
# modes that require arguments? (non-standard)]
self.ircd = msg.args[2]
self.ircd = msg.args[2] if len(msg.args) >= 3 else msg.args[1]
self.supported['umodes'] = frozenset(msg.args[3])
self.supported['chanmodes'] = frozenset(msg.args[4])