Fixed mod_offline:store_offline_msg argument (EJAB-1581)

This commit is contained in:
Alexey Shchepin 2012-11-09 12:43:53 +02:00
parent ec51ba7bc6
commit dfcdf1ca7a
1 changed files with 1 additions and 1 deletions

View File

@ -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