summary refs log tree commit diff
path: root/chat.h
diff options
context:
space:
mode:
authorCurtis McEnroe2018-08-10 00:01:35 -0400
committerCurtis McEnroe2018-08-10 00:01:35 -0400
commit1a9ae050d62dd56f285b59d3952f1dabe186ea9c (patch)
tree407deaabd88b9db6cb1bcc37cc651efe666cc0bf /chat.h
parent4e1501df4149dc35856faf059e3bbed9edb3f5c4 (diff)
Rename chan to join
In preparation for multi-channel?
Diffstat (limited to 'chat.h')
-rw-r--r--chat.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/chat.h b/chat.h
index af13410..fce1ba2 100644
--- a/chat.h
+++ b/chat.h
@@ -29,18 +29,9 @@ struct {
 	bool verbose;
 	char *nick;
 	char *user;
-	char *chan;
+	char *join;
 } chat;
 
-enum {
-	IRC_BOLD      = 002,
-	IRC_COLOR     = 003,
-	IRC_REVERSE   = 026,
-	IRC_RESET     = 017,
-	IRC_ITALIC    = 035,
-	IRC_UNDERLINE = 037,
-};
-
 int ircConnect(
 	const char *host, const char *port, const char *pass, const char *webPass
 );
@@ -50,6 +41,15 @@ void ircWrite(const char *ptr, size_t len);
 __attribute__((format(printf, 1, 2)))
 void ircFmt(const char *format, ...);
 
+enum {
+	IRC_BOLD      = 002,
+	IRC_COLOR     = 003,
+	IRC_REVERSE   = 026,
+	IRC_RESET     = 017,
+	IRC_ITALIC    = 035,
+	IRC_UNDERLINE = 037,
+};
+
 void uiInit(void);
 void uiHide(void);
 void uiExit(void);