Skip to content

Commit

Permalink
Merge pull request #20 from cameronbwhite/master
Browse files Browse the repository at this point in the history
Fixed events_limit bug
  • Loading branch information
Cameron White committed Feb 16, 2014
2 parents 97abb69 + 4ea24c3 commit 0a00dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/acmbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def get_event_messages(self, func=None):
if func:
events = func(events)

if events_limit and events_limit >= 0:
if events_limit and events_limit >= 0 and len(events) >= events_limit:
events = events[len(events)-events_limit:]

messages = []
Expand Down

0 comments on commit 0a00dce

Please sign in to comment.