about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-02-03 20:09:56 +0000
committerJames Booth <boothj5@gmail.com>2013-02-03 20:09:56 +0000
commit1cea320a0cff2a763a47322283886facfd9c9c29 (patch)
tree3fa253c81835d809965c9f8a1bcb7abd3004584e /src/config
parent059f3e24784a7a7af4c9b9fe49be7e437c3bb2ed (diff)
downloadprofani-tty-1cea320a0cff2a763a47322283886facfd9c9c29.tar.gz
Send entity capabilities and status when joining room
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;
 }