projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f34b27b
)
stanza_router: Fix for when clients don't specify priority in initial presence
author
Matthew Wild
<mwild1@gmail.com>
Mon, 9 Feb 2009 13:48:11 +0000
(13:48 +0000)
committer
Matthew Wild
<mwild1@gmail.com>
Mon, 9 Feb 2009 13:48:11 +0000
(13:48 +0000)
core/stanza_router.lua
patch
|
blob
|
history
diff --git
a/core/stanza_router.lua
b/core/stanza_router.lua
index 3c905c6db0f9c1c4b9fa093b3445d24f92903912..89e6a77fe1aa8e19971e44dedd17ca10820f81bc 100644
(file)
--- a/
core/stanza_router.lua
+++ b/
core/stanza_router.lua
@@
-202,7
+202,7
@@
function core_route_stanza(origin, stanza)
local priority = 0;
local recipients = {};
for _, session in pairs(user.sessions) do -- find resource with greatest priority
- local p = session.priority;
+ local p = session.priority
or -1
;
if p > priority then
priority = p;
recipients = {session};