Add get_user_status func to IRCChannel
This commit is contained in:
parent
facd9d69cb
commit
ec4036a501
1 changed files with 7 additions and 0 deletions
|
@ -75,3 +75,10 @@ class Channel(object):
|
||||||
if nickname.lower() in self.modes.get(mode, []):
|
if nickname.lower() in self.modes.get(mode, []):
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
def get_user_status(self, nickname):
|
||||||
|
modes = ""
|
||||||
|
for mode in self.server.mode_prefixes.values():
|
||||||
|
if nickname.lower() in self.modes.get(mode, []):
|
||||||
|
modes += mode
|
||||||
|
return modes
|
||||||
|
|
Loading…
Reference in a new issue