From 188d2f891cba01f407fed1f71fe17cba78d42625 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 28 May 2016 12:52:52 -0700 Subject: [PATCH] nefarious: use nicks in user MODE targets This is more consistent with what Nefarious and P10 do. --- protocols/nefarious.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocols/nefarious.py b/protocols/nefarious.py index 49b1478..9a390d1 100644 --- a/protocols/nefarious.py +++ b/protocols/nefarious.py @@ -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]: