3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 13:09:23 +01:00

unreal: handle umode +r on burst as services login, even when no explicit accountname is set

Ref #296.
This commit is contained in:
James Lu 2016-07-27 17:38:17 -07:00
parent e7ccfc9156
commit 5800594d55

View File

@ -387,6 +387,9 @@ class UnrealProtocol(TS6BaseProtocol):
self.irc.users[uid].host = realhost
# Set the accountname if present
if ('+r', None) in parsedmodes and accountname == '0':
accountname = nick
if accountname != "0":
self.irc.callHooks([uid, 'CLIENT_SERVICES_LOGIN', {'text': accountname}])