diff --git a/ChangeLog b/ChangeLog index 23cbd3d29..e6e682ea6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-09-05 Alexey Shchepin + + * src/mod_offline_odbc.erl: Bugfix + 2007-09-04 Mickael Remond * 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