From 2a6b0964012fdf25a1120c6e075f51b6e0a10aec Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 17 Apr 2016 20:33:35 -0700 Subject: [PATCH] nefarious: add KNOCK stub (not supported on P10) --- protocols/nefarious.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocols/nefarious.py b/protocols/nefarious.py index dd5562a..91883ab 100644 --- a/protocols/nefarious.py +++ b/protocols/nefarious.py @@ -305,6 +305,9 @@ class P10Protocol(Protocol): self._send(numeric, 'D %s :Killed (%s)' % (target, reason)) self.removeClient(target) + def knock(self, numeric, target, text): + raise NotImplementedError('KNOCK is not supported on P10.') + def message(self, numeric, target, text): """Sends a PRIVMSG from a PyLink client.""" if not self.irc.isInternalClient(numeric):