summary refs log tree commit diff
path: root/chat.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-12 20:12:34 -0500
committerJune McEnroe <june@causal.agency>2020-02-12 20:12:34 -0500
commit180bbc7b38f814ff506bb25091a908f02ba32b5c (patch)
tree423b6fddd7fc39667ea6be4eed13665b034fc833 /chat.h
parentMark and unmark on uiHide, uiShow (diff)
downloadcatgirl-180bbc7b38f814ff506bb25091a908f02ba32b5c.tar.gz
catgirl-180bbc7b38f814ff506bb25091a908f02ba32b5c.zip
Add -N flag for notifications
Diffstat (limited to '')
-rw-r--r--chat.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/chat.h b/chat.h
index ed6dc2f..fb7bf61 100644
--- a/chat.h
+++ b/chat.h
@@ -146,7 +146,22 @@ const char *commandIsNotice(size_t id, const char *input);
 const char *commandIsAction(size_t id, const char *input);
 void commandComplete(void);
 
+enum { UtilCap = 16 };
+struct Util {
+	size_t argc;
+	const char *argv[UtilCap];
+};
+
+static inline void utilPush(struct Util *util, const char *arg) {
+	if (1 + util->argc < UtilCap) {
+		util->argv[util->argc++] = arg;
+	} else {
+		errx(EX_CONFIG, "too many utility arguments");
+	}
+}
+
 enum Heat { Cold, Warm, Hot };
+extern struct Util uiNotifyUtil;
 void uiInit(void);
 void uiShow(void);
 void uiHide(void);
@@ -196,20 +211,6 @@ void completeClear(size_t id);
 size_t completeID(const char *str);
 enum Color completeColor(size_t id, const char *str);
 
-enum { UtilCap = 16 };
-struct Util {
-	size_t argc;
-	const char *argv[UtilCap];
-};
-
-static inline void utilPush(struct Util *util, const char *arg) {
-	if (1 + util->argc < UtilCap) {
-		util->argv[util->argc++] = arg;
-	} else {
-		errx(EX_CONFIG, "too many utility arguments");
-	}
-}
-
 extern struct Util urlOpenUtil;
 extern struct Util urlCopyUtil;
 void urlScan(size_t id, const char *nick, const char *mesg);