diff options
author | dequis <dx@dxzone.com.ar> | 2015-08-18 02:53:17 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-09-30 22:01:48 -0300 |
commit | 355e2ade69fe6555320d8fe5b4b9d3a56c3e6edb (patch) | |
tree | e78724898e6312104a9acf6bd93195fb1db3e0eb /irc.h | |
parent | d797fb45e38b005b25fa043f4d3c427ec7f7fe53 (diff) |
Move CAP commands to irc_cap.c; use enum for flags
Diffstat (limited to 'irc.h')
-rw-r--r-- | irc.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |