diff options
author | daurnimator <quae@daurnimator.com> | 2014-05-19 13:47:28 -0400 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2014-05-19 13:47:28 -0400 |
commit | d6b18f4e20e7ac945426acf5d869b446c61d57e0 (patch) | |
tree | 0732f2b49f39206df4e7ac07bdf081a7507c3839 /plugins/muc | |
parent | 75357b0f410a3e344b5e4c7cbbcbb24ba7d9d140 (diff) | |
download | prosody-d6b18f4e20e7ac945426acf5d869b446c61d57e0.tar.gz prosody-d6b18f4e20e7ac945426acf5d869b446c61d57e0.zip |
plugins/muc/occupant: Check for type == nil rather than type ~= unavailable
Diffstat (limited to 'plugins/muc')
-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 |