diff options
author | dequis <dx@dxzone.com.ar> | 2015-07-27 02:14:09 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-09-10 23:31:10 -0300 |
commit | 0ef1c9293b2055807e14e404cdf96cf7d8843170 (patch) | |
tree | bfa51613f2ea1b72dd54c99dd4b26fd466f5ecdd /irc_send.c | |
parent | 34d16d5b4b5265990125894572a90493284358cd (diff) |
Initial implementation of ircv3 capability negotiation
Mostly no-op for now. Puts registration on hold, supports the basic
commands, and NAKs everything
Diffstat (limited to 'irc_send.c')
-rw-r--r-- | irc_send.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -427,3 +427,10 @@ void irc_send_invite(irc_user_t *iu, irc_channel_t *ic) irc_write(iu->irc, ":%s!%s@%s INVITE %s :%s", iu->nick, iu->user, iu->host, irc->user->nick, ic->name); } + +void irc_send_cap(irc_t *irc, char *subcommand, char *body) +{ + char *nick = irc->user->nick ? : "*"; + + irc_write(irc, ":%s CAP %s %s :%s", irc->root->host, nick, subcommand, body); +} |