3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-02-02 23:54:08 +01:00

Protocol: add a hasCap() wrapper function (#337)

This commit is contained in:
James Lu 2017-03-15 23:46:13 -07:00
parent 2ca0cf05a0
commit f512ae1b33

View File

@ -1409,6 +1409,12 @@ class Protocol():
return real_args
def hasCap(capab):
"""
Returns whether this protocol module instance has the requested capability.
"""
return capab.lower() in self.protocol_caps
def removeClient(self, numeric):
"""Internal function to remove a client from our internal state."""
for c, v in self.irc.channels.copy().items():