aboutsummaryrefslogtreecommitdiffstats
path: root/irc_send.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2015-07-27 02:14:09 -0300
committerdequis <dx@dxzone.com.ar>2015-09-10 23:31:10 -0300
commit0ef1c9293b2055807e14e404cdf96cf7d8843170 (patch)
treebfa51613f2ea1b72dd54c99dd4b26fd466f5ecdd /irc_send.c
parent34d16d5b4b5265990125894572a90493284358cd (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.c7
1 files changed, 7 insertions, 0 deletions
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);
+}