3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 12:12:53 +01:00

clientbot: properly track oper

This commit is contained in:
James Lu 2016-07-25 11:02:25 -07:00
parent db9f362857
commit 8ce0ceee37

View File

@ -415,6 +415,7 @@ class ClientbotWrapperProtocol(Protocol):
log.warning('(%s) handle_352: got wrong string %s for away status', self.irc.name, status[0]) log.warning('(%s) handle_352: got wrong string %s for away status', self.irc.name, status[0])
if '*' in status: # Track IRCop status if '*' in status: # Track IRCop status
self.irc.applyModes(uid, [('+o', None)])
self.irc.callHooks([uid, 'CLIENT_OPERED', {'text': 'IRC Operator'}]) self.irc.callHooks([uid, 'CLIENT_OPERED', {'text': 'IRC Operator'}])
#else: # TODO: track de-opers as well #else: # TODO: track de-opers as well