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

nefarious: set umode +x when changing hosts of service clients

This commit is contained in:
James Lu 2016-05-28 11:22:53 -07:00
parent 89ed92b46a
commit 841d58d82e

View File

@ -623,7 +623,14 @@ class P10Protocol(Protocol):
if field == 'HOST':
self._send(self.irc.sid, 'FA %s %s' % (target, text))
# Save the host change as a user mode (this is what P10 does),
# If this is an internal client, propagate a umode +x change to the target.
# External clients will have to turn umode +x on themselves, as I don't believe
# we can force modes on remote users.
if self.irc.isInternalClient(target):
self.mode(self.irc.sid, target, [('+x', None)])
# Save the host change as a user mode (this is what P10 does on bursts),
# so further host checks work.
self.irc.applyModes(target, [('+f', text)])