mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 20:22:45 +01:00
ts6: fix call to operup hook when handling EUID
This commit is contained in:
parent
9a1eab3b82
commit
59af8e196c
@ -578,9 +578,9 @@ class TS6Protocol(TS6BaseProtocol):
|
|||||||
log.debug('Applying modes %s for %s', parsedmodes, uid)
|
log.debug('Applying modes %s for %s', parsedmodes, uid)
|
||||||
utils.applyModes(self.irc, uid, parsedmodes)
|
utils.applyModes(self.irc, uid, parsedmodes)
|
||||||
self.irc.servers[numeric].users.add(uid)
|
self.irc.servers[numeric].users.add(uid)
|
||||||
# Call the OPERED UP hook if +o is in the mode list.
|
# Call the OPERED UP hook if +o is being added to the mode list.
|
||||||
if ('o', None) in parsedmodes:
|
if ('+o', None) in parsedmodes:
|
||||||
otype = 'Server_Administrator' if ('a', None) in parsedmodes else 'IRC_Operator'
|
otype = 'Server_Administrator' if ('+a', None) in parsedmodes else 'IRC_Operator'
|
||||||
self.irc.callHooks([uid, 'PYLINK_CLIENT_OPERED', {'text': otype}])
|
self.irc.callHooks([uid, 'PYLINK_CLIENT_OPERED', {'text': otype}])
|
||||||
return {'uid': uid, 'ts': ts, 'nick': nick, 'realhost': realhost, 'host': host, 'ident': ident, 'ip': ip}
|
return {'uid': uid, 'ts': ts, 'nick': nick, 'realhost': realhost, 'host': host, 'ident': ident, 'ip': ip}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user