Commits

Fred T-H committed 2e16083

Fixing an incorrect empty history queue.

Thanks to DeadZen for the report.

  • Participants
  • Parent commits 29dcdc9

Comments (0)

Files changed (1)

src/chut_user_history_handler.erl

 %% events). If the list gets larger than the given limit, it is
 %% truncated.
 %%-------------------------------------------------------------------
-add_to_history(_, _, 0) -> [];
+add_to_history(_, _, 0) -> queue:new();
 add_to_history(Event, History, Limit) ->
     case queue:len(History) of
         Limit ->