about summary refs log tree commit diff
path: root/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'input.c')
-rw-r--r--input.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/input.c b/input.c
index 3a3d499..85c240f 100644
--- a/input.c
+++ b/input.c
@@ -87,6 +87,13 @@ static void inputWho(struct Tag tag, char *params) {
 	ircFmt("WHO %s\r\n", tag.name);
 }
 
+static void inputWhois(struct Tag tag, char *params) {
+	(void)tag;
+	char *nick = param("/whois", &params, "nick");
+	if (!nick) return;
+	ircFmt("WHOIS %s\r\n", nick);
+}
+
 static void inputTopic(struct Tag tag, char *params) {
 	if (params) {
 		ircFmt("TOPIC %s :%s\r\n", tag.name, params);
@@ -104,7 +111,7 @@ static void inputQuit(struct Tag tag, char *params) {
 	}
 }
 
-static void inputUrl(struct Tag tag, char *params) {
+static void inputURL(struct Tag tag, char *params) {
 	(void)params;
 	urlList(tag);
 }
@@ -163,9 +170,10 @@ static const struct {
 	{ "/query", inputQuery },
 	{ "/quit", inputQuit },
 	{ "/topic", inputTopic },
-	{ "/url", inputUrl },
+	{ "/url", inputURL },
 	{ "/view", inputView },
 	{ "/who", inputWho },
+	{ "/whois", inputWhois },
 };
 static const size_t CommandsLen = sizeof(Commands) / sizeof(Commands[0]);
 
amp;follow=1'>Document process of generating client certificatesJune McEnroe 2020-01-16Set certificate expiry to 10 yearsJune McEnroe 2020-01-12Allow signing by CA in -gJune McEnroe 2020-01-12Clean up documentation for -AJune McEnroe 2020-01-12Rename all local-related options to local-June McEnroe 2020-01-12Use the CAP_PREAD rightJune McEnroe 2020-01-12Add option to set local client CAJune McEnroe 2020-01-10Add a vendor capability for passive clientsJune McEnroe 2020-01-07Rename -A and -Q to -y and -qJune McEnroe 2019-12-28Intercept client QUIT with no parameter 1.0p3June McEnroe 2019-12-24Update source URLJune McEnroe 2019-12-22Exit on zero-length server readJune McEnroe 2019-12-22Revert "Exit when server gets POLLHUP"June McEnroe 2019-12-20Exit when server gets POLLHUPJune McEnroe 2019-12-17Add CONTRIBUTING section to READMEJune McEnroe 2019-12-08Don't send self-PMs to the server 1.0p2June McEnroe 2019-11-27Reference openssl(1) by absolute pathedef 2019-11-27Simplify Linux.mkJune McEnroe 2019-11-26Don't always create ${ETCDIR}/rc.dJune McEnroe 2019-11-21Link calico with libcrypto on Linux 1.0p1June McEnroe 2019-11-21Fix wordcmp return value when the words have differing lengthsMichael Forney 2019-11-21Declare globals as extern in headers, and define in source file