From b0eb1656a5d7038de9f0a24348de7666e3f1ad31 Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 6 Jul 2017 21:47:03 -0700 Subject: [PATCH] ngircd: add a stub for KNOCK --- protocols/ngircd.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/protocols/ngircd.py b/protocols/ngircd.py index 79a16d2..489f421 100644 --- a/protocols/ngircd.py +++ b/protocols/ngircd.py @@ -153,6 +153,9 @@ class NgIRCdProtocol(IRCS2SProtocol): self.channels[channel].users.add(client) self.users[client].channels.add(channel) + def knock(self, numeric, target, text): + raise NotImplementedError('KNOCK is not supported on ngIRCd.') + def mode(self, source, target, modes, ts=None): """Sends mode changes from a PyLink client/server. The TS option is not used on ngIRCd."""