mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-26 04:32:51 +01:00
hybrid: track vHost changes (#198)
This commit is contained in:
parent
d0655b701a
commit
32038e666a
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user