+2005-11-22 Alexey Shchepin <alexey@sevcom.net>
+
+ * src/ejabberd_c2s.erl: Send stream error when connection is
+ replaced (thanks to Maxim Ryazanov)
+
2005-11-19 Mickael Remond <mickael.remond@process-one.net>
- * contrib/extract_translations/prepare-translation.sh: Added wrapper to
- extract_translation.erl (thanks to Badlod).
+ * contrib/extract_translations/prepare-translation.sh: Added
+ wrapper to extract_translation.erl (thanks to Badlop)
2005-11-19 Alexey Shchepin <alexey@sevcom.net>
send_text(StateData, Text),
{next_state, StateName, StateData};
handle_info(replaced, _StateName, StateData) ->
- % TODO
- %send_text(StateData#state.sender, Text),
+ Lang = StateData#state.lang,
+ send_text(StateData,
+ xml:element_to_string(
+ ?SERRT_CONFLICT(Lang, "Replaced by new connection"))
+ ++ ?STREAM_TRAILER),
{stop, normal, StateData#state{authenticated = replaced}};
handle_info({route, From, To, Packet}, StateName, StateData) ->
{xmlelement, Name, Attrs, Els} = Packet,