From dfcdf1ca7a6d30711817cbd69a22d8f0fe299a81 Mon Sep 17 00:00:00 2001 From: Alexey Shchepin Date: Fri, 9 Nov 2012 12:43:53 +0200 Subject: [PATCH] Fixed mod_offline:store_offline_msg argument (EJAB-1581) --- src/mod_offline.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_offline.erl b/src/mod_offline.erl index 4095478c2..4a7dfd9b7 100644 --- a/src/mod_offline.erl +++ b/src/mod_offline.erl @@ -133,7 +133,7 @@ store_offline_msg(_Host, US, Msgs, Len, MaxOfflineMsgs, mnesia) -> end end, mnesia:transaction(F); -store_offline_msg(Host, User, Msgs, Len, MaxOfflineMsgs, odbc) -> +store_offline_msg(Host, {User, _Server}, Msgs, Len, MaxOfflineMsgs, odbc) -> Count = if MaxOfflineMsgs =/= infinity -> Len + count_offline_messages(User, Host); true -> 0 -- 2.40.0