In get_vh_session_list/1, remove a bad list_to_binary/1; now that

exmpp_stringprep return the correct type, it was used on a binary().

PR:		EJABP-1

SVN Revision: 1845
This commit is contained in:
Jean-Sébastien Pédron 2009-01-22 15:52:30 +00:00
parent 0cf0992f78
commit a105dcb060
2 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,10 @@
* src/web/ejabberd_web_admin.erl, src/ejabberd_listener.erl: Fix some
eDoc @spec directives.
* src/ejabberd_sm.erl (get_vh_session_list/1): Remove a bad
list_to_binary/1; now that exmpp_stringprep return the correct type,
it was used on a binary().
2009-01-21 Jean-Sébastien Pédron <js.pedron@meetic-corp.com>
* src/acl.erl (match_acl/3): Use string() version of

View File

@ -241,8 +241,7 @@ dirty_get_my_sessions_list() ->
['$_']}]).
get_vh_session_list(Server) when is_binary(Server) ->
LServer = list_to_binary(
exmpp_stringprep:nameprep(Server)),
LServer = exmpp_stringprep:nameprep(Server),
mnesia:dirty_select(
session,
[{#session{usr = '$1', _ = '_'},