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:
parent
0bfde19ebd
commit
b045bd806a
@ -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 =
|
|
||||||
jlib:add_delay_info(Packet1, LServer, TimeStamp,
|
|
||||||
<<"Offline Storage">>),
|
<<"Offline Storage">>),
|
||||||
XML =
|
XML = ejabberd_odbc:escape(xml:element_to_binary(Packet2)),
|
||||||
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, <<"');">>]];
|
||||||
|
Loading…
Reference in New Issue
Block a user