mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-25 09:50:39 +01:00
unreal: expand PUIDs in outgoing channel modes
This fixes things like relay modes / automode targets not working.
This commit is contained in:
parent
8465edd5af
commit
df4acbf5d5
@ -222,6 +222,13 @@ class UnrealProtocol(TS6BaseProtocol):
|
|||||||
self.irc.applyModes(target, modes)
|
self.irc.applyModes(target, modes)
|
||||||
|
|
||||||
if utils.isChannel(target):
|
if utils.isChannel(target):
|
||||||
|
|
||||||
|
# Make sure we expand any PUIDs when sending outgoing modes...
|
||||||
|
for idx, mode in enumerate(modes):
|
||||||
|
if mode[0][-1] in self.irc.prefixmodes:
|
||||||
|
log.debug('(%s) mode: expanding PUID of mode %s', self.irc.name, str(mode))
|
||||||
|
modes[idx] = (mode[0], self._expandPUID(mode[1]))
|
||||||
|
|
||||||
# The MODE command is used for channel mode changes only
|
# The MODE command is used for channel mode changes only
|
||||||
ts = ts or self.irc.channels[self.irc.toLower(target)].ts
|
ts = ts or self.irc.channels[self.irc.toLower(target)].ts
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user