about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--catgirl.15
-rw-r--r--input.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/catgirl.1 b/catgirl.1
index 28f4dbb..754aec8 100644
--- a/catgirl.1
+++ b/catgirl.1
@@ -139,6 +139,11 @@ Show or set the topic of the current channel.
 .
 .It Ic /whois Ar nick
 Query information about a user.
+.
+.It Ic /znc Ar command
+Send
+.Xr znc 1
+command.
 .El
 .
 .Pp
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]);
 
b8a3087244bd9cae711769c0474&follow=1'>Disconnect client on unknown commandJune McEnroe 2019-10-26Allow reading sensitive information from filesJune McEnroe 2019-10-26Add rc scriptJune McEnroe 2019-10-25Add install and uninstall targetsJune McEnroe 2019-10-25Expand documentationJune McEnroe 2019-10-25Add AGPLv3 notice on client registrationJune McEnroe 2019-10-25Rename project pounceJune McEnroe