mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-25 18:00:39 +01:00
nefarious: use nicks in user MODE targets
This is more consistent with what Nefarious and P10 do.
This commit is contained in:
parent
841d58d82e
commit
188d2f891c
@ -390,6 +390,9 @@ class P10Protocol(Protocol):
|
|||||||
ts = ts or cobj.ts
|
ts = ts or cobj.ts
|
||||||
send_ts = True
|
send_ts = True
|
||||||
else:
|
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
|
send_ts = False
|
||||||
|
|
||||||
while modes[:12]:
|
while modes[:12]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user