3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

nefarious: add KNOCK stub (not supported on P10)

This commit is contained in:
James Lu 2016-04-17 20:33:35 -07:00
parent 29d2fea3b2
commit 2a6b096401

View File

@ -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):