3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-28 21:52:38 +01:00

unreal: work around a potential race when sending kills on join

(cherry picked from commit 1780271dd0)
This commit is contained in:
James Lu 2019-03-01 23:34:32 -08:00
parent e0a618f317
commit d57b121600

View File

@ -607,6 +607,11 @@ class UnrealProtocol(TS6BaseProtocol):
continue
user = self._get_UID(user) # Normalize nicks to UIDs for Unreal 3.2 links
if user not in self.users:
# Work around a potential race when sending kills on join
log.debug("(%s) Ignoring user %s in SJOIN to %s, they don't exist anymore", self.name, user, channel)
continue
# Unreal uses slightly different prefixes in SJOIN. +q is * instead of ~,
# and +a is ~ instead of &.
modeprefix = (r.group(1) or '').replace("~", "&").replace("*", "~")