mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
Fixed mod_offline:store_offline_msg argument (EJAB-1581)
This commit is contained in:
parent
ec51ba7bc6
commit
dfcdf1ca7a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user