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:
parent
9121cbe295
commit
9660f402ad
@ -364,7 +364,7 @@ jabber_update_presence(jabber_presence_t status, const char * const msg,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
pri = prefs_get_priority();
|
pri = prefs_get_priority();
|
||||||
if (pri < -128 || pri > 127)
|
if (pri < JABBER_PRIORITY_MIN || pri > JABBER_PRIORITY_MAX)
|
||||||
pri = 0;
|
pri = 0;
|
||||||
|
|
||||||
jabber_conn.presence = status;
|
jabber_conn.presence = status;
|
||||||
|
@ -49,6 +49,9 @@ typedef enum {
|
|||||||
PRESENCE_UNSUBSCRIBED
|
PRESENCE_UNSUBSCRIBED
|
||||||
} jabber_subscr_t;
|
} jabber_subscr_t;
|
||||||
|
|
||||||
|
#define JABBER_PRIORITY_MIN -128
|
||||||
|
#define JABBER_PRIORITY_MAX 127
|
||||||
|
|
||||||
void jabber_init(const int disable_tls);
|
void jabber_init(const int disable_tls);
|
||||||
jabber_conn_status_t jabber_connect(const char * const jid,
|
jabber_conn_status_t jabber_connect(const char * const jid,
|
||||||
const char * const passwd, const char * const altdomain);
|
const char * const passwd, const char * const altdomain);
|
||||||
|
Loading…
Reference in New Issue
Block a user