Add irc.state.ircd.

This commit is contained in:
Valentin Lorentz 2013-03-31 21:22:59 +02:00
parent 8e1929d1b4
commit 856a65c9f6

View File

@ -352,6 +352,7 @@ class IrcState(IrcCommandDispatcher):
nicksToHostmasks = ircutils.IrcDict() nicksToHostmasks = ircutils.IrcDict()
if channels is None: if channels is None:
channels = ircutils.IrcDict() channels = ircutils.IrcDict()
self.ircd = None
self.supported = supported self.supported = supported
self.history = history self.history = history
self.channels = channels self.channels = channels
@ -408,6 +409,7 @@ class IrcState(IrcCommandDispatcher):
Supported user and channel modes are cached""" Supported user and channel modes are cached"""
# msg.args = [nick, server, ircd-version, umodes, modes, # msg.args = [nick, server, ircd-version, umodes, modes,
# modes that require arguments? (non-standard)] # modes that require arguments? (non-standard)]
self.ircd = msg.args[2]
self.supported['umodes'] = msg.args[3] self.supported['umodes'] = msg.args[3]
self.supported['chanmodes'] = msg.args[4] self.supported['chanmodes'] = msg.args[4]