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]);
 
19-02-22 15:13:58 -0500'>2019-02-22Fix name of <raw> window in man pageJune McEnroe 2019-02-22Rename global tags with angle bracketsJune McEnroe 2019-02-22Show status window while connectingJune McEnroe 2019-02-22Reorganize UI code for the umpteenth timeJune McEnroe 2019-02-21Replace "view" with "window"June McEnroe 2019-02-21Remove ROT13June McEnroe 2019-02-21Clean up man pageJune McEnroe 2019-01-26Draw UI before connectingJune McEnroe 2019-01-25Avoid unused variable warnings with getyxJune McEnroe 2019-01-25Add GNU/Linux build instructionsJune McEnroe