about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/config')
-rw-r--r--src/config/accounts.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/config/accounts.c b/src/config/accounts.c
index b94f27c2..c51e01f5 100644
--- a/src/config/accounts.c
+++ b/src/config/accounts.c
@@ -428,6 +428,9 @@ accounts_get_priority_for_presence_type(const char * const account_name,
             result = 0;
             break;
     }
+    
+    if (result < JABBER_PRIORITY_MIN || result > JABBER_PRIORITY_MAX)
+        result = 0;
 
     return result;
 }