mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 04:02:45 +01:00
clientbot: properly track oper
This commit is contained in:
parent
db9f362857
commit
8ce0ceee37
@ -415,6 +415,7 @@ class ClientbotWrapperProtocol(Protocol):
|
||||
log.warning('(%s) handle_352: got wrong string %s for away status', self.irc.name, status[0])
|
||||
|
||||
if '*' in status: # Track IRCop status
|
||||
self.irc.applyModes(uid, [('+o', None)])
|
||||
self.irc.callHooks([uid, 'CLIENT_OPERED', {'text': 'IRC Operator'}])
|
||||
#else: # TODO: track de-opers as well
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user