about summary refs log tree commit diff
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
parentUpdate status line after scrolling and term events (diff)
downloadtest-8bdd1578c735931bafd213792ce5903f9f78486b.tar.gz
test-8bdd1578c735931bafd213792ce5903f9f78486b.zip
Add /znc command
Only because ZNC tells you to use it and expects it to work.
-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]);
 
6d5a7749eaff1ef3acf095b1f&follow=1'>Add AcceptanceJune McEnroe 2019-06-07Add variables to bitJune McEnroe 2019-06-05Add A Closed and Common OrbitJune McEnroe 2019-06-02Add RebornJune McEnroe 2019-05-30Add bit to bin.7June McEnroe 2019-05-30Simplify and build bitJune McEnroe lex is a waste of time. 2019-05-29Add xx -p optionJune McEnroe 2019-05-27Add FrontierJune McEnroe 2019-05-27Break nicks with ZWNJJune McEnroe This should prevent bad wrapping. 2019-05-26Add DawnJune McEnroe 2019-05-20Declare vasprintf(3) for GNUJune McEnroe who the fuck is scraeming "#define _GNU_SOURCE" at my house. show yourself, coward. i will never #define _GNU_SOURCE 2019-05-20Fix comparison warning in ttpreJune McEnroe 2019-05-20Add AuthorityJune McEnroe 2019-05-19Specify precedence of unary versions of operatorsJune McEnroe 2019-05-18Add compound assignment operators to orderJune McEnroe 2019-05-15Support simple assignment in orderJune McEnroe 2019-05-15Implement sizeof in orderJune McEnroe 2019-05-15Add orderJune McEnroe 2019-05-12Add T suffix in bitJune McEnroe 2019-05-10Highlight yacc and lex files as CJune McEnroe Their %-prefixed directives should probably be highlighted Macro. 2019-05-10Use val instead of suboptargJune McEnroe suboptarg doesn't exist in GNU. Hopefully BSD getsubopt also sets val on failure? 2019-05-09Add Parable of the SowerJune McEnroe 2019-05-07Add bit without buildJune McEnroe Need to do some stuff in the Makefile for lex and yacc and generating HTML pages for it. 2019-05-04Fix MANDIR typoJune McEnroe 2019-05-04Move relay to binJune McEnroe