_ ->
{Msgs, true, L}
end;
-select(LServer, From, To, Start, End, With, RSM, MsgType) ->
+select(LServer, JidRequestor, JidArchive, Start, End, With, RSM, MsgType) ->
Mod = gen_mod:db_mod(LServer, ?MODULE),
- Mod:select(LServer, From, To, Start, End, With, RSM, MsgType).
+ Mod:select(LServer, JidRequestor, JidArchive, Start, End, With, RSM,
+ MsgType).
msg_to_el(#archive_msg{timestamp = TS, packet = Pkt1, nick = Nick, peer = Peer},
MsgType, JidRequestor, #jid{lserver = LServer} = JidArchive) ->