From 1a9ae050d62dd56f285b59d3952f1dabe186ea9c Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 10 Aug 2018 00:01:35 -0400 Subject: Rename chan to join In preparation for multi-channel? --- handle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'handle.c') 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 -- cgit 1.4.1-2-gfad0