aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2012-11-09 12:43:53 +0200
committerAlexey Shchepin <alexey@process-one.net>2012-11-09 12:48:25 +0200
commitdfcdf1ca7a6d30711817cbd69a22d8f0fe299a81 (patch)
tree0df9ed4a88d50bae2d5597de659c58a2f7e166ec
parentNew Hebrew translation (thanks to Isratine Citizen) (diff)
Fixed mod_offline:store_offline_msg argument (EJAB-1581)
-rw-r--r--src/mod_offline.erl2
1 files changed, 1 insertions, 1 deletions
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