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.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'irc.h') diff --git a/irc.h b/irc.h index 8b2e4947..549f400c 100644 --- a/irc.h +++ b/irc.h @@ -48,6 +48,7 @@ typedef enum { USTATUS_IDENTIFIED = 4, /* To NickServ (root). */ USTATUS_SHUTDOWN = 8, /* Now used to indicate we're shutting down. Currently just blocks irc_vawrite(). */ + USTATUS_CAP_PENDING = 16, /* Not really status stuff, but other kinds of flags: For slightly better password security, since the only way to send passwords @@ -330,6 +331,7 @@ void irc_send_nick(irc_user_t *iu, const char *new_nick); void irc_send_channel_user_mode_diff(irc_channel_t *ic, irc_user_t *iu, irc_channel_user_flags_t old_flags, irc_channel_user_flags_t new_flags); void irc_send_invite(irc_user_t *iu, irc_channel_t *ic); +void irc_send_cap(irc_t *irc, char *subcommand, char *body); /* irc_user.c */ irc_user_t *irc_user_new(irc_t *irc, const char *nick); -- cgit v1.2.3