3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 03:33:10 +01:00

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

This commit is contained in:
James Lu 2019-03-01 23:34:32 -08:00
parent 190e51211f
commit 1780271dd0

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("*", "~")