From 355e2ade69fe6555320d8fe5b4b9d3a56c3e6edb Mon Sep 17 00:00:00 2001 From: dequis Date: Tue, 18 Aug 2015 02:53:17 -0300 Subject: Move CAP commands to irc_cap.c; use enum for flags --- irc.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'irc.h') diff --git a/irc.h b/irc.h index fc449524..c7d1aa85 100644 --- a/irc.h +++ b/irc.h @@ -65,6 +65,11 @@ typedef enum { IRC_UTF8_NICKS = 0x10000, /* Disable ASCII restrictions on buddy nicks. */ } irc_status_t; +typedef enum { + CAP_FOO = (1 << 0), + CAP_BAR = (1 << 1), +} irc_cap_flag_t; + struct irc_user; typedef struct irc { @@ -351,4 +356,7 @@ char *irc_format_timestamp(irc_t *irc, time_t msg_ts); void bee_irc_channel_update(irc_t *irc, irc_channel_t *ic, irc_user_t *iu); void bee_irc_user_nick_reset(irc_user_t *iu); +/* irc_cap.c */ +void irc_cmd_cap(irc_t *irc, char **cmd); + #endif -- cgit v1.2.3