mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 13:09:23 +01:00
nefarious: fix UnboundLocalError when no modes are given on user introduction
Reported by Kev`Bz via IRC.
This commit is contained in:
parent
bbdffc797d
commit
ffa89f1e01
@ -856,9 +856,9 @@ class P10Protocol(IRCS2SProtocol):
|
|||||||
accountname = modepair[1].split(':', 1)[0]
|
accountname = modepair[1].split(':', 1)[0]
|
||||||
self.irc.callHooks([uid, 'CLIENT_SERVICES_LOGIN', {'text': accountname}])
|
self.irc.callHooks([uid, 'CLIENT_SERVICES_LOGIN', {'text': accountname}])
|
||||||
|
|
||||||
# Call the OPERED UP hook if +o is being added to 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:
|
||||||
self.irc.callHooks([uid, 'CLIENT_OPERED', {'text': 'IRC Operator'}])
|
self.irc.callHooks([uid, 'CLIENT_OPERED', {'text': 'IRC Operator'}])
|
||||||
|
|
||||||
self.checkCloakChange(uid)
|
self.checkCloakChange(uid)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user