mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
unreal: call PYLINK_CLIENT_OPERED hooks where we're supposed to
This commit is contained in:
parent
09bb2976f8
commit
6d597e4482
@ -345,6 +345,10 @@ class UnrealProtocol(TS6BaseProtocol):
|
||||
# appropriately.
|
||||
self.irc.users[uid].cloaked_host = args[9]
|
||||
|
||||
if ('+o', None) in parsedmodes:
|
||||
# If +o being set, call the PYLINK_CLIENT_OPERED internal hook.
|
||||
self.irc.callHooks([uid, 'PYLINK_CLIENT_OPERED', {'text': 'IRC_Operator'}])
|
||||
|
||||
return {'uid': uid, 'ts': ts, 'nick': nick, 'realhost': realhost, 'host': host, 'ident': ident, 'ip': ip}
|
||||
|
||||
def handle_pass(self, numeric, command, args):
|
||||
@ -613,6 +617,11 @@ class UnrealProtocol(TS6BaseProtocol):
|
||||
# <- :GL UMODE2 +W
|
||||
parsedmodes = utils.parseModes(self.irc, numeric, args)
|
||||
utils.applyModes(self.irc, numeric, parsedmodes)
|
||||
|
||||
if ('+o', None) in parsedmodes:
|
||||
# If +o being set, call the PYLINK_CLIENT_OPERED internal hook.
|
||||
self.irc.callHooks([uid, 'PYLINK_CLIENT_OPERED', {'text': 'IRC_Operator'}])
|
||||
|
||||
return {'target': numeric, 'modes': parsedmodes}
|
||||
|
||||
def handle_topic(self, numeric, command, args):
|
||||
|
Loading…
Reference in New Issue
Block a user