From d63f37c78c273bc345daf8c40ce99905212a84a0 Mon Sep 17 00:00:00 2001 From: dequis Date: Sun, 8 Nov 2015 05:16:15 -0300 Subject: IRCv3 extended-join capability Not very useful for the account features (and i won't implement account-notify), but it has a real name field, and it's *really* easy to implement. --- irc_send.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'irc_send.c') diff --git a/irc_send.c b/irc_send.c index e2ec0f59..adf1b853 100644 --- a/irc_send.c +++ b/irc_send.c @@ -171,7 +171,11 @@ void irc_send_join(irc_channel_t *ic, irc_user_t *iu) { irc_t *irc = ic->irc; - irc_write(irc, ":%s!%s@%s JOIN :%s", iu->nick, iu->user, iu->host, ic->name); + if (irc->caps & CAP_EXTENDED_JOIN) { + irc_write(irc, ":%s!%s@%s JOIN %s * :%s", iu->nick, iu->user, iu->host, ic->name, iu->fullname); + } else { + irc_write(irc, ":%s!%s@%s JOIN :%s", iu->nick, iu->user, iu->host, ic->name); + } if (iu == irc->user) { if (ic->topic && *ic->topic) { -- cgit v1.2.3