src/irclib.py: use a set instead of a list for Irc.caps

This commit is contained in:
nyuszika7h 2014-08-04 21:54:44 +02:00
parent 581d167e5e
commit da817603dd

View File

@ -654,7 +654,7 @@ class Irc(IrcCommandDispatcher):
self._setNonResettingVariables() self._setNonResettingVariables()
self._queueConnectMessages() self._queueConnectMessages()
self.startedSync = ircutils.IrcDict() self.startedSync = ircutils.IrcDict()
self.caps = ['account-notify', 'extended-join'] self.caps = set(['account-notify', 'extended-join'])
def isChannel(self, s): def isChannel(self, s):
"""Helper function to check whether a given string is a channel on """Helper function to check whether a given string is a channel on