aboutsummaryrefslogtreecommitdiff
path: root/src/mod_mam_sql.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_mam_sql.erl')
-rw-r--r--src/mod_mam_sql.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_mam_sql.erl b/src/mod_mam_sql.erl
index 9eb9716fb..09175d83f 100644
--- a/src/mod_mam_sql.erl
+++ b/src/mod_mam_sql.erl
@@ -362,10 +362,10 @@ export(_Server) ->
[]
end},
{archive_msg,
- fun(Host, #archive_msg{us ={LUser, LServer},
+ fun([Host | HostTail], #archive_msg{us ={LUser, LServer},
id = _ID, timestamp = TS, peer = Peer,
type = Type, nick = Nick, packet = Pkt})
- when LServer == Host ->
+ when (LServer == Host) or ([LServer] == HostTail) ->
TStmp = misc:now_to_usec(TS),
SUser = case Type of
chat -> LUser;