From 8b6a476c35c4ee209dbaa3feced83aff4c02b5d5 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 30 Dec 2020 14:29:32 -0500 Subject: Add /whowas --- command.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'command.c') diff --git a/command.c b/command.c index bf5a2e3..de8d0ff 100644 --- a/command.c +++ b/command.c @@ -316,6 +316,13 @@ static void commandWhois(uint id, char *params) { replies.whois += count; } +static void commandWhowas(uint id, char *params) { + (void)id; + if (!params) return; + ircFormat("WHOWAS %s\r\n", params); + replies.whowas++; +} + static void commandNS(uint id, char *params) { (void)id; if (params) ircFormat("PRIVMSG NickServ :%s\r\n", params); @@ -500,6 +507,7 @@ static const struct Handler { { "/uninvex", commandUninvex, 0 }, { "/voice", commandVoice, 0 }, { "/whois", commandWhois, 0 }, + { "/whowas", commandWhowas, 0 }, { "/window", commandWindow, 0 }, }; -- cgit 1.4.1