about summary refs log tree commit diff stats
path: root/src/jabber.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/jabber.c')
-rw-r--r--src/jabber.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jabber.c b/src/jabber.c
index 7709c405..8579cec3 100644
--- a/src/jabber.c
+++ b/src/jabber.c
@@ -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;