diff options
author | Kim Alvefur <zash@zash.se> | 2017-04-10 20:04:07 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-04-10 20:04:07 +0200 |
commit | abdd9866e57240aab356a893653eb95fad7dd0e6 (patch) | |
tree | caf8cd00ec66c803873167474745770360184aaf /plugins | |
parent | 28a11bcc05bc78e5ef8ea4df2e71c97ba4bf6631 (diff) | |
download | prosody-abdd9866e57240aab356a893653eb95fad7dd0e6.tar.gz prosody-abdd9866e57240aab356a893653eb95fad7dd0e6.zip |
mod_presence: No need to overwrite index 1 since it's set on the line below
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_presence.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index 2acc7db2..c5b2ae85 100644 --- a/plugins/mod_presence.lua +++ b/plugins/mod_presence.lua @@ -36,7 +36,7 @@ function handle_normal_presence(origin, stanza) local priority = stanza:get_child("priority"); if priority and priority[1] ~= "0" then for i=#priority.tags,1,-1 do priority.tags[i] = nil; end - for i=#priority,1,-1 do priority[i] = nil; end + for i=#priority,2,-1 do priority[i] = nil; end priority[1] = "0"; end end |