25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-24 17:29:28 +01: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 = [],
authenticated = false,
jid,
user = "", server = ?MYNAME, resource = <<"">>,
user = "", server = <<"">>, resource = <<"">>,
sid,
pres_t = ?SETS:new(),
pres_f = ?SETS:new(),
@ -293,7 +293,7 @@ wait_for_stream({xmlstreamstart, _Name, Attrs}, StateData) ->
?NS_STREAM ->
Server =
case StateData#state.server of
undefined ->
<<"">> ->
jlib:nameprep(xml:get_attr_s(<<"to">>, Attrs));
S -> S
end,