diff options
author | June McEnroe <june@causal.agency> | 2018-08-10 00:01:35 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2018-08-10 00:01:35 -0400 |
commit | 1a9ae050d62dd56f285b59d3952f1dabe186ea9c (patch) | |
tree | 407deaabd88b9db6cb1bcc37cc651efe666cc0bf /input.c | |
parent | Add -u option for setting user (diff) | |
download | catgirl-1a9ae050d62dd56f285b59d3952f1dabe186ea9c.tar.gz catgirl-1a9ae050d62dd56f285b59d3952f1dabe186ea9c.zip |
Rename chan to join
In preparation for multi-channel?
Diffstat (limited to 'input.c')
-rw-r--r-- | input.c | 8 |
1 files changed, 4 insertions, 4 deletions
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); } } |