25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

caps storage indexed on case insensitive jid

SVN Revision: 2382
This commit is contained in:
Christophe Romain 2009-07-21 20:51:14 +00:00
parent 46735f7c62
commit fef762243c

View File

@ -240,7 +240,8 @@ remove_connection(_SID, JID, _Info) ->
clear_caps(JID). clear_caps(JID).
jid_to_binary(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}) -> caps_to_binary(#caps{node = Node, version = Version, exts = Exts}) ->
BExts = [list_to_binary(Ext) || Ext <- Exts], BExts = [list_to_binary(Ext) || Ext <- Exts],