diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/mod_offline_odbc.erl | 6 |
2 files changed, 7 insertions, 3 deletions
@@ -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> * src/mod_register.erl: update ejabberd commands to support diff --git a/src/mod_offline_odbc.erl b/src/mod_offline_odbc.erl index 1e0eedca4..19e23585f 100644 --- a/src/mod_offline_odbc.erl +++ b/src/mod_offline_odbc.erl @@ -57,13 +57,13 @@ init(Host, MaxOfflineMsgs) loop(Host, MaxOfflineMsgs) -> receive - #offline_msg{user=Username} = Msg -> - Msgs = receive_all(Username, [Msg]), + #offline_msg{user = User} = Msg -> + Msgs = receive_all(User, [Msg]), Len = length(Msgs), %% Only count existing messages if needed: Count = if MaxOfflineMsgs =/= infinity -> - Len + count_offline_messages(Username, Host); + Len + count_offline_messages(User, Host); true -> 0 end, if |