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

nefarious: use nicks in user MODE targets

This is more consistent with what Nefarious and P10 do.
This commit is contained in:
James Lu 2016-05-28 12:52:52 -07:00
parent 841d58d82e
commit 188d2f891c

View File

@ -390,6 +390,9 @@ class P10Protocol(Protocol):
ts = ts or cobj.ts
send_ts = True
else:
assert target in self.irc.users, "Unknown mode target %s" % target
# P10 uses nicks in user MODE targets, NOT UIDs. ~GL
target = self.irc.users[target].nick
send_ts = False
while modes[:12]: