From 0ef1c9293b2055807e14e404cdf96cf7d8843170 Mon Sep 17 00:00:00 2001 From: dequis Date: Mon, 27 Jul 2015 02:14:09 -0300 Subject: Initial implementation of ircv3 capability negotiation Mostly no-op for now. Puts registration on hold, supports the basic commands, and NAKs everything --- irc_send.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'irc_send.c') diff --git a/irc_send.c b/irc_send.c index 3da725a4..a76b5bb1 100644 --- a/irc_send.c +++ b/irc_send.c @@ -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); +} -- cgit v1.2.3