summary refs log tree commit diff
path: root/input.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-22 16:07:32 -0500
committerJune McEnroe <june@causal.agency>2019-02-22 16:07:32 -0500
commit8bdd1578c735931bafd213792ce5903f9f78486b (patch)
treef6eaeebbeb84e0d0e884b6bc7c403cce09efbff4 /input.c
parentUpdate status line after scrolling and term events (diff)
downloadcatgirl-8bdd1578c735931bafd213792ce5903f9f78486b.tar.gz
catgirl-8bdd1578c735931bafd213792ce5903f9f78486b.zip
Add /znc command
Only because ZNC tells you to use it and expects it to work.
Diffstat (limited to '')
-rw-r--r--input.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/input.c b/input.c
index 370d757..7c2ffef 100644
--- a/input.c
+++ b/input.c
@@ -97,6 +97,11 @@ static void inputWhois(struct Tag tag, char *params) {
 	}
 }
 
+static void inputZNC(struct Tag tag, char *params) {
+	(void)tag;
+	ircFmt("ZNC %s\r\n", params ? params : "");
+}
+
 static void inputClose(struct Tag tag, char *params) {
 	(void)params;
 	uiCloseTag(tag);
@@ -175,6 +180,7 @@ static const struct {
 	{ "/who", inputWho },
 	{ "/whois", inputWhois },
 	{ "/window", inputWindow },
+	{ "/znc", inputZNC },
 };
 static const size_t CommandsLen = sizeof(Commands) / sizeof(Commands[0]);