diff options
author | dequis <dx@dxzone.com.ar> | 2015-11-08 05:16:15 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-11-08 05:16:15 -0300 |
commit | d63f37c78c273bc345daf8c40ce99905212a84a0 (patch) | |
tree | ec4b502590fe2222c33846fe399d30fde7c68f65 /irc_send.c | |
parent | 37c965301304e0e83e29f19a5a5b5c7336412d8a (diff) |
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.
Diffstat (limited to 'irc_send.c')
-rw-r--r-- | irc_send.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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) { |