Fix for the previous commit

This commit is contained in:
Alexey Shchepin 2014-01-21 11:54:18 +02:00
parent d63be79df9
commit cbbfd921b4
1 changed files with 2 additions and 2 deletions

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,