]> granicus.if.org Git - ejabberd/commitdiff
Cosmetic change: Make variable names consistent
authorHolger Weiß <holger@zedat.fu-berlin.de>
Tue, 3 May 2016 17:12:57 +0000 (19:12 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Tue, 3 May 2016 17:12:57 +0000 (19:12 +0200)
Use the same variable names in both mod_mam:select/8 clauses to avoid
confusion.

src/mod_mam.erl

index 317fddfc5de66a9d762fe19fdd57be6cbf73ff23..12b80c45c7ef15d8909ff0b4ae6f4c4b6885e7c8 100644 (file)
@@ -812,9 +812,10 @@ select(_LServer, JidRequestor, JidArchive, Start, End, _With, RSM,
        _ ->
            {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) ->