diff options
author | Matthew Wild <mwild1@gmail.com> | 2014-05-23 20:37:16 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2014-05-23 20:37:16 +0100 |
commit | 352fc4fcb0284d81ccd617cdf7d4aa1d66b8f507 (patch) | |
tree | 3f5de516b7b87f9a82f26861db6700c2a0320540 /plugins/muc/occupant.lib.lua | |
parent | 6d80a449f0a07ab560ff68a41a7d21de3d5af1b6 (diff) | |
parent | 4d7106bee63fe544a4bec49c201d56b93d3794d3 (diff) | |
download | prosody-352fc4fcb0284d81ccd617cdf7d4aa1d66b8f507.tar.gz prosody-352fc4fcb0284d81ccd617cdf7d4aa1d66b8f507.zip |
Merge with daurnimator
Diffstat (limited to 'plugins/muc/occupant.lib.lua')
-rw-r--r-- | plugins/muc/occupant.lib.lua | 2 |
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 |