projects
/
prosody.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0c17af
)
mod_pep: Fix comparison between incoming hash and the cached hash for a JID, fixes...
author
Matthew Wild
<mwild1@gmail.com>
Fri, 25 Feb 2011 00:07:38 +0000
(
00:07
+0000)
committer
Matthew Wild
<mwild1@gmail.com>
Fri, 25 Feb 2011 00:07:38 +0000
(
00:07
+0000)
plugins/mod_pep.lua
patch
|
blob
|
history
diff --git
a/plugins/mod_pep.lua
b/plugins/mod_pep.lua
index 9ff6cac204d126304903a02bdaf28036cce73ff8..bd6f4b29b8a89e6139d826149ddda18eee4795d3 100644
(file)
--- a/
plugins/mod_pep.lua
+++ b/
plugins/mod_pep.lua
@@
-124,7
+124,7
@@
module:hook("presence/bare", function(event)
local recipient = stanza.attr.from;
local current = recipients[user] and recipients[user][recipient];
local hash = get_caps_hash_from_presence(stanza, current);
- if current == hash then return; end
+ if current == hash
or (current and current == hash_map[hash])
then return; end
if not hash then
if recipients[user] then recipients[user][recipient] = nil; end
else