diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2009-07-21 20:51:14 +0000 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2009-07-21 20:51:14 +0000 |
commit | fef762243c41239a750ffb0006758f103ba3da46 (patch) | |
tree | 6516aaa93b4595667bf8708d4f193666d0aee5ea /src | |
parent | Fix typo from EJAB-988 (diff) |
caps storage indexed on case insensitive jid
SVN Revision: 2382
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_caps.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mod_caps.erl b/src/mod_caps.erl index 4545fe664..6432c4872 100644 --- a/src/mod_caps.erl +++ b/src/mod_caps.erl @@ -240,7 +240,8 @@ remove_connection(_SID, JID, _Info) -> clear_caps(JID). jid_to_binary(JID) -> - list_to_binary(jlib:jid_to_string(JID)). + {U, S, R} = jlib:jid_tolower(JID), + list_to_binary(jlib:jid_to_string({U, S, R})). caps_to_binary(#caps{node = Node, version = Version, exts = Exts}) -> BExts = [list_to_binary(Ext) || Ext <- Exts], |