Changeset d63f37c for irc_send.c


Ignore:
Timestamp:
2015-11-08T08:16:15Z (4 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
d6e2aa8
Parents:
37c9653
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_send.c

    r37c9653 rd63f37c  
    172172        irc_t *irc = ic->irc;
    173173
    174         irc_write(irc, ":%s!%s@%s JOIN :%s", iu->nick, iu->user, iu->host, ic->name);
     174        if (irc->caps & CAP_EXTENDED_JOIN) {
     175                irc_write(irc, ":%s!%s@%s JOIN %s * :%s", iu->nick, iu->user, iu->host, ic->name, iu->fullname);
     176        } else {
     177                irc_write(irc, ":%s!%s@%s JOIN :%s", iu->nick, iu->user, iu->host, ic->name);
     178        }
    175179
    176180        if (iu == irc->user) {
Note: See TracChangeset for help on using the changeset viewer.