presence: Add CLICAP_PRESENCE.

This will enable broadcasting presence updates on channels.
This commit is contained in:
William Pitcock 2009-06-02 02:14:44 -05:00
parent e4a64911ae
commit 6364809623
2 changed files with 3 additions and 1 deletions

View File

@ -456,6 +456,7 @@ struct ListClient
#define CLICAP_MULTI_PREFIX 0x0001 #define CLICAP_MULTI_PREFIX 0x0001
#define CLICAP_SASL 0x0002 #define CLICAP_SASL 0x0002
#define CLICAP_PRESENCE 0x0004
/* /*
* flags macros. * flags macros.

View File

@ -69,7 +69,8 @@ static struct clicap
int namelen; int namelen;
} clicap_list[] = { } clicap_list[] = {
_CLICAP("multi-prefix", CLICAP_MULTI_PREFIX, 0, 0), _CLICAP("multi-prefix", CLICAP_MULTI_PREFIX, 0, 0),
_CLICAP("sasl", CLICAP_SASL, 0, 0) _CLICAP("sasl", CLICAP_SASL, 0, 0),
_CLICAP("presence", CLICAP_PRESENCE, 0, 0)
}; };
#define CLICAP_LIST_LEN (sizeof(clicap_list) / sizeof(struct clicap)) #define CLICAP_LIST_LEN (sizeof(clicap_list) / sizeof(struct clicap))