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? --- input.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'input.c') diff --git a/input.c b/input.c index c342a78..56c38bf 100644 --- a/input.c +++ b/input.c @@ -28,7 +28,7 @@ static void privmsg(bool action, const char *mesg) { int send; asprintf( &line, ":%s!%s %nPRIVMSG %s :%s%s%s", - chat.nick, chat.user, &send, chat.chan, + chat.nick, chat.user, &send, chat.join, (action ? "\1ACTION " : ""), mesg, (action ? "\1" : "") ); if (!line) err(EX_OSERR, "asprintf"); @@ -54,14 +54,14 @@ static void inputNick(char *params) { static void inputWho(char *params) { (void)params; - ircFmt("WHO %s\r\n", chat.chan); + ircFmt("WHO %s\r\n", chat.join); } static void inputTopic(char *params) { if (params) { - ircFmt("TOPIC %s :%s\r\n", chat.chan, params); + ircFmt("TOPIC %s :%s\r\n", chat.join, params); } else { - ircFmt("TOPIC %s\r\n", chat.chan); + ircFmt("TOPIC %s\r\n", chat.join); } } -- cgit 1.4.1-2-gfad0