From c5d06b2d4113fa0a97582af5a1474d85479ec9c8 Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 7 Jul 2017 03:16:56 -0700 Subject: [PATCH] ngircd: run check_nick_collision in handle_nick, per #375 --- protocols/ngircd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocols/ngircd.py b/protocols/ngircd.py index 781b331..3134042 100644 --- a/protocols/ngircd.py +++ b/protocols/ngircd.py @@ -185,7 +185,7 @@ class NgIRCdProtocol(IRCS2SProtocol): raise LookupError('No such PyLink client/server %r exists' % source) self.apply_modes(target, modes) - modes = list(modes) + modes = list(modes) # Work around TypeError in the expand PUID section if utils.isChannel(target): msgprefix = ':%s MODE %s ' % (self._expandPUID(source), target) @@ -434,6 +434,7 @@ class NgIRCdProtocol(IRCS2SProtocol): # <- :ngircd.midnight.local NICK GL 1 ~gl localhost 1 +io :realname nick = args[0] assert source in self.servers, "Server %r tried to introduce nick %r but isn't in the servers index?" % (source, nick) + self.check_nick_collision(nick) ident = args[2] host = args[3]