1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

added JABBER_PRIORITY_* macros

This commit is contained in:
Dmitry Podgorny 2013-01-12 23:40:21 +02:00
parent 9121cbe295
commit 9660f402ad
2 changed files with 4 additions and 1 deletions

View File

@ -364,7 +364,7 @@ jabber_update_presence(jabber_presence_t status, const char * const msg,
return;
pri = prefs_get_priority();
if (pri < -128 || pri > 127)
if (pri < JABBER_PRIORITY_MIN || pri > JABBER_PRIORITY_MAX)
pri = 0;
jabber_conn.presence = status;

View File

@ -49,6 +49,9 @@ typedef enum {
PRESENCE_UNSUBSCRIBED
} jabber_subscr_t;
#define JABBER_PRIORITY_MIN -128
#define JABBER_PRIORITY_MAX 127
void jabber_init(const int disable_tls);
jabber_conn_status_t jabber_connect(const char * const jid,
const char * const passwd, const char * const altdomain);