mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-09 02:54:14 +01:00
Protocol: add a hasCap() wrapper function (#337)
This commit is contained in:
parent
2ca0cf05a0
commit
f512ae1b33
@ -1409,6 +1409,12 @@ class Protocol():
|
|||||||
|
|
||||||
return real_args
|
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):
|
def removeClient(self, numeric):
|
||||||
"""Internal function to remove a client from our internal state."""
|
"""Internal function to remove a client from our internal state."""
|
||||||
for c, v in self.irc.channels.copy().items():
|
for c, v in self.irc.channels.copy().items():
|
||||||
|
Loading…
Reference in New Issue
Block a user