aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/muc/occupant.lib.lua
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2014-05-19 13:47:28 -0400
committerdaurnimator <quae@daurnimator.com>2014-05-19 13:47:28 -0400
commitae461b42728b11d7e241ca26c6cded24b6bb0d6f (patch)
tree0732f2b49f39206df4e7ac07bdf081a7507c3839 /plugins/muc/occupant.lib.lua
parent0d12eda7d73df356c24e9db0e7d3899962a1ce87 (diff)
downloadprosody-ae461b42728b11d7e241ca26c6cded24b6bb0d6f.tar.gz
prosody-ae461b42728b11d7e241ca26c6cded24b6bb0d6f.zip
plugins/muc/occupant: Check for type == nil rather than type ~= unavailable
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