about summary refs log tree commit diff
path: root/chat.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-09-13 15:17:41 -0400
committerJune McEnroe <june@causal.agency>2018-09-13 15:17:41 -0400
commit9a69869d392ca9ac9e2d845dec5f4dfecdbf3456 (patch)
tree7179e65680da647300158cf2eb0549f593e20030 /chat.h
parentReturn a format->split even at the end of the string (diff)
downloadcatgirl-9a69869d392ca9ac9e2d845dec5f4dfecdbf3456.tar.gz
catgirl-9a69869d392ca9ac9e2d845dec5f4dfecdbf3456.zip
Add IRCDefault to colors enum
Diffstat (limited to 'chat.h')
-rw-r--r--chat.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/chat.h b/chat.h
index f9ffff3..b72e664 100644
--- a/chat.h
+++ b/chat.h
@@ -56,7 +56,7 @@ const struct Tag TagVerbose;
 struct Tag tagFind(const char *name);
 struct Tag tagFor(const char *name);
 
-enum {
+enum IRCColor {
 	IRCWhite,
 	IRCBlack,
 	IRCBlue,
@@ -73,6 +73,7 @@ enum {
 	IRCPink,
 	IRCGray,
 	IRCLightGray,
+	IRCDefault = 99,
 };
 enum {
 	IRCBold      = 002,
@@ -88,7 +89,7 @@ struct Format {
 	size_t len;
 	bool split;
 	bool bold, italic, underline, reverse;
-	int fg, bg;
+	enum IRCColor fg, bg;
 };
 void formatReset(struct Format *format);
 bool formatParse(struct Format *format, const wchar_t *split);