25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

mod_offline: Remove a few superfluous newlines

This commit is contained in:
Holger Weiss 2015-03-11 20:38:22 +01:00
parent 0bfde19ebd
commit b045bd806a

View File

@ -1085,13 +1085,10 @@ export(_Server) ->
packet = Packet}) packet = Packet})
when LServer == Host -> when LServer == Host ->
Username = ejabberd_odbc:escape(LUser), Username = ejabberd_odbc:escape(LUser),
Packet1 = Packet1 = jlib:replace_from_to(From, To, Packet),
jlib:replace_from_to(From, To, Packet), Packet2 = jlib:add_delay_info(Packet1, LServer, TimeStamp,
Packet2 = <<"Offline Storage">>),
jlib:add_delay_info(Packet1, LServer, TimeStamp, XML = ejabberd_odbc:escape(xml:element_to_binary(Packet2)),
<<"Offline Storage">>),
XML =
ejabberd_odbc:escape(xml:element_to_binary(Packet2)),
[[<<"delete from spool where username='">>, Username, <<"';">>], [[<<"delete from spool where username='">>, Username, <<"';">>],
[<<"insert into spool(username, xml) values ('">>, [<<"insert into spool(username, xml) values ('">>,
Username, <<"', '">>, XML, <<"');">>]]; Username, <<"', '">>, XML, <<"');">>]];