mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix for the previous commit
This commit is contained in:
parent
d63be79df9
commit
cbbfd921b4
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user