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

hybrid: track vHost changes (#198)

This commit is contained in:
James Lu 2016-04-08 22:02:08 -07:00
parent d0655b701a
commit 32038e666a

View File

@ -253,6 +253,20 @@ class HybridProtocol(TS6Protocol):
self.irc.callHooks([target, 'CLIENT_SERVICES_LOGIN', {'text': account}]) self.irc.callHooks([target, 'CLIENT_SERVICES_LOGIN', {'text': account}])
parsedmodes.remove(modepair) parsedmodes.remove(modepair)
elif modepair[0] == '+x':
# SVSMODE is also used to set cloaks on Hybrid.
# "SVSMODE 001TARGET +x some.host" would change 001TARGET's host
# to some.host, for example.
host = modepair[1]
self.irc.users[target].host = host
# Propagate the hostmask change as a hook.
self.irc.callHooks([numeric, 'CHGHOST',
{'target': target, 'newhost': host}])
parsedmodes.remove(modepair)
if parsedmodes: if parsedmodes:
utils.applyModes(self.irc, target, parsedmodes) utils.applyModes(self.irc, target, parsedmodes)