summary refs log tree commit diff
path: root/handle.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-10 00:01:35 -0400
committerJune McEnroe <june@causal.agency>2018-08-10 00:01:35 -0400
commit1a9ae050d62dd56f285b59d3952f1dabe186ea9c (patch)
tree407deaabd88b9db6cb1bcc37cc651efe666cc0bf /handle.c
parentAdd -u option for setting user (diff)
downloadcatgirl-1a9ae050d62dd56f285b59d3952f1dabe186ea9c.tar.gz
catgirl-1a9ae050d62dd56f285b59d3952f1dabe186ea9c.zip
Rename chan to join
In preparation for multi-channel?
Diffstat (limited to '')
-rw-r--r--handle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/handle.c b/handle.c
index 7971d8d..81a38f7 100644
--- a/handle.c
+++ b/handle.c
@@ -99,7 +99,7 @@ static void handle001(char *prefix, char *params) {
 		free(chat.nick);
 		chat.nick = strdup(nick);
 	}
-	ircFmt("JOIN %s\r\n", chat.chan);
+	ircFmt("JOIN %s\r\n", chat.join);
 }
 
 static void handleJoin(char *prefix, char *params) {
@@ -272,7 +272,7 @@ static void handlePrivmsg(char *prefix, char *params) {
 static void handleNotice(char *prefix, char *params) {
 	char *nick, *user, *chan, *mesg;
 	shift(prefix, &nick, &user, NULL, params, 2, 0, &chan, &mesg);
-	if (strcmp(chan, chat.chan)) return;
+	if (strcmp(chan, chat.join)) return;
 	uiFmt(
 		"\3%d-%s-\3 %s",
 		color(user), nick, mesg