aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/occupant.lib.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2014-05-23 20:37:16 +0100
committerMatthew Wild <mwild1@gmail.com>2014-05-23 20:37:16 +0100
commitb5a72ce69dcaa31dc6e626956144c579c04fdc72 (patch)
tree3f5de516b7b87f9a82f26861db6700c2a0320540 /plugins/muc/occupant.lib.lua
parent9680214e3d4d8d853e83bbdb357601673dd6f2f6 (diff)
parent9e8f0a984c05647db2346160d1cf62139560fefc (diff)
downloadprosody-b5a72ce69dcaa31dc6e626956144c579c04fdc72.tar.gz
prosody-b5a72ce69dcaa31dc6e626956144c579c04fdc72.zip
Merge with daurnimator
Diffstat (limited to 'plugins/muc/occupant.lib.lua')
-rw-r--r--plugins/muc/occupant.lib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/occupant.lib.lua b/plugins/muc/occupant.lib.lua
index 5cecb139..6a3f7df4 100644
--- a/plugins/muc/occupant.lib.lua
+++ b/plugins/muc/occupant.lib.lua
@@ -53,7 +53,7 @@ end
-- finds another session to be the primary (there might not be one)
function occupant_mt:choose_new_primary()
for jid, pr in self:each_session() do
- if pr.attr.type ~= "unavailable" then
+ if pr.attr.type == nil then
return jid;
end
end