mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +01:00
* src/mod_offline_odbc.erl: Bugfix
SVN Revision: 920
This commit is contained in:
parent
43fe376d67
commit
ef57d79093
@ -1,3 +1,7 @@
|
|||||||
|
2007-09-05 Alexey Shchepin <alexey@process-one.net>
|
||||||
|
|
||||||
|
* src/mod_offline_odbc.erl: Bugfix
|
||||||
|
|
||||||
2007-09-04 Mickael Remond <mremond@process-one.net>
|
2007-09-04 Mickael Remond <mremond@process-one.net>
|
||||||
|
|
||||||
* src/mod_register.erl: update ejabberd commands to support
|
* src/mod_register.erl: update ejabberd commands to support
|
||||||
|
@ -57,13 +57,13 @@ init(Host, MaxOfflineMsgs)
|
|||||||
|
|
||||||
loop(Host, MaxOfflineMsgs) ->
|
loop(Host, MaxOfflineMsgs) ->
|
||||||
receive
|
receive
|
||||||
#offline_msg{user=Username} = Msg ->
|
#offline_msg{user = User} = Msg ->
|
||||||
Msgs = receive_all(Username, [Msg]),
|
Msgs = receive_all(User, [Msg]),
|
||||||
Len = length(Msgs),
|
Len = length(Msgs),
|
||||||
|
|
||||||
%% Only count existing messages if needed:
|
%% Only count existing messages if needed:
|
||||||
Count = if MaxOfflineMsgs =/= infinity ->
|
Count = if MaxOfflineMsgs =/= infinity ->
|
||||||
Len + count_offline_messages(Username, Host);
|
Len + count_offline_messages(User, Host);
|
||||||
true -> 0
|
true -> 0
|
||||||
end,
|
end,
|
||||||
if
|
if
|
||||||
|
Loading…
Reference in New Issue
Block a user