diff options
Diffstat (limited to '')
-rw-r--r-- | input.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/input.c b/input.c index bbbc0d3..024941d 100644 --- a/input.c +++ b/input.c @@ -42,7 +42,12 @@ typedef void Handler(struct Tag tag, char *params); static void inputJoin(struct Tag tag, char *params) { char *chan = strsep(¶ms, " "); - ircFmt("JOIN :%s\r\n", chan ? chan : tag.name); + char *key = strsep(¶ms, " "); + if (key) { + ircFmt("JOIN %s %s\r\n", chan, key); + } else { + ircFmt("JOIN %s\r\n", chan ? chan : tag.name); + } } static void inputMe(struct Tag tag, char *params) { |