From 687ec880201e4872a9abf72f5efe135164fc349b Mon Sep 17 00:00:00 2001 From: dequis Date: Sat, 12 Sep 2015 05:25:33 -0300 Subject: IRCv3 multi-prefix... but mostly just adding prefixes to WHO We can't actually have multiple prefixes internally, so the only thing missing for multi-prefix compliance is actually having the prefix in the WHO reply, which is a rfc1459 thing. Note to future self: check irc logs for the implementation I threw away. The one that actually handled multiple prefixes. I hope that's useful. --- irc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'irc.h') diff --git a/irc.h b/irc.h index c7d1aa85..4be7ce7e 100644 --- a/irc.h +++ b/irc.h @@ -66,8 +66,7 @@ typedef enum { } irc_status_t; typedef enum { - CAP_FOO = (1 << 0), - CAP_BAR = (1 << 1), + CAP_MULTI_PREFIX = (1 << 1), } irc_cap_flag_t; struct irc_user; @@ -308,6 +307,7 @@ int irc_channel_name_cmp(const char *a_, const char *b_); char *irc_channel_name_gen(irc_t *irc, const char *name); gboolean irc_channel_name_hint(irc_channel_t *ic, const char *name); void irc_channel_update_ops(irc_channel_t *ic, char *value); +char irc_channel_user_get_prefix(irc_channel_user_t *icu); char *set_eval_irc_channel_ops(struct set *set, char *value); gboolean irc_channel_wants_user(irc_channel_t *ic, irc_user_t *iu); -- cgit v1.2.3