24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-08 21:43:07 +02:00

Fix for the previous commit

This commit is contained in:
Alexey Shchepin 2014-01-21 11:54:18 +02:00
parent d63be79df9
commit cbbfd921b4

View File

@ -94,7 +94,7 @@
tls_options = [], tls_options = [],
authenticated = false, authenticated = false,
jid, jid,
user = "", server = ?MYNAME, resource = <<"">>, user = "", server = <<"">>, resource = <<"">>,
sid, sid,
pres_t = ?SETS:new(), pres_t = ?SETS:new(),
pres_f = ?SETS:new(), pres_f = ?SETS:new(),
@ -293,7 +293,7 @@ wait_for_stream({xmlstreamstart, _Name, Attrs}, StateData) ->
?NS_STREAM -> ?NS_STREAM ->
Server = Server =
case StateData#state.server of case StateData#state.server of
undefined -> <<"">> ->
jlib:nameprep(xml:get_attr_s(<<"to">>, Attrs)); jlib:nameprep(xml:get_attr_s(<<"to">>, Attrs));
S -> S S -> S
end, end,