From fef762243c41239a750ffb0006758f103ba3da46 Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Tue, 21 Jul 2009 20:51:14 +0000 Subject: [PATCH] caps storage indexed on case insensitive jid SVN Revision: 2382 --- src/mod_caps.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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],