mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Enable the new #xmlel record.
SVN Revision: 1367
This commit is contained in:
parent
e4646a6788
commit
a19f280fcc
@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
* src/configure, src/aclocal.m4, src/Makefile.in: Add exmpp detection.
|
* src/configure, src/aclocal.m4, src/Makefile.in: Add exmpp detection.
|
||||||
|
|
||||||
|
* src/ejabberd_receiver.erl: Enable the new #xmlel record.
|
||||||
|
|
||||||
2008-06-19 Jean-Sébastien Pédron <js.pedron@meetic-corp.com>
|
2008-06-19 Jean-Sébastien Pédron <js.pedron@meetic-corp.com>
|
||||||
|
|
||||||
* src/ejabberd_receiver.erl: Replace the use of xml_stream by
|
* src/ejabberd_receiver.erl: Replace the use of xml_stream by
|
||||||
|
@ -160,15 +160,14 @@ handle_call(reset_stream, _From,
|
|||||||
Reply = ok,
|
Reply = ok,
|
||||||
{reply, Reply, State#state{xml_stream_state = NewXMLStreamState}};
|
{reply, Reply, State#state{xml_stream_state = NewXMLStreamState}};
|
||||||
handle_call({become_controller, C2SPid}, _From, State) ->
|
handle_call({become_controller, C2SPid}, _From, State) ->
|
||||||
% XXX OLD FORMAT
|
|
||||||
Parser = exmpp_xml:start_parser([
|
Parser = exmpp_xml:start_parser([
|
||||||
{namespace, false},
|
{namespace, true},
|
||||||
{name_as_atom, false},
|
{name_as_atom, true},
|
||||||
{maxsize, State#state.max_stanza_size}
|
{maxsize, State#state.max_stanza_size}
|
||||||
]),
|
]),
|
||||||
XMLStreamState = exmpp_xmlstream:start(
|
XMLStreamState = exmpp_xmlstream:start(
|
||||||
{gen_fsm, C2SPid}, Parser,
|
{gen_fsm, C2SPid}, Parser,
|
||||||
[{xmlstreamstart, old}]
|
[{xmlstreamstart, new}]
|
||||||
),
|
),
|
||||||
NewState = State#state{c2s_pid = C2SPid,
|
NewState = State#state{c2s_pid = C2SPid,
|
||||||
xml_stream_state = XMLStreamState},
|
xml_stream_state = XMLStreamState},
|
||||||
|
Loading…
Reference in New Issue
Block a user