From 5664218254be1e872b1e741d798d77dedb608df0 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 11 Nov 2015 19:40:26 -0800 Subject: [PATCH] unreal: add WHOIS handling --- protocols/unreal.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/protocols/unreal.py b/protocols/unreal.py index 4662ec7..6deeb01 100644 --- a/protocols/unreal.py +++ b/protocols/unreal.py @@ -526,4 +526,16 @@ class UnrealProtocol(TS6BaseProtocol): return {'channel': channel, 'setter': numeric, 'ts': ts, 'topic': topic, 'oldtopic': oldtopic} + def handle_whois(self, numeric, command, args): + """Handles WHOIS queries.""" + # <- :GL WHOIS PyLink-devel :pylink-devel + # In this case, the first argument is actually the server that the + # WHOIS query is requested from - IRCds should pass these requests on + # to the server in question. Since we're a services server, we can just + # process it regardless. + # The second argument is the ACTUAL nick requested. + + # The actual WHOIS handling is done protocol-independently by coreplugin. + return {'target': self._getNick(args[-1])} + Class = UnrealProtocol