From 1bcf687ea27a7f6b0ff2dc777a379391afa685bd Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Fri, 28 Feb 2014 14:01:22 +1300 Subject: [PATCH] just keep 100 messages per channel for now --- plugins/history.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/history.py b/plugins/history.py index 438aed3..e41b142 100644 --- a/plugins/history.py +++ b/plugins/history.py @@ -32,7 +32,7 @@ def track_history(input, message_time, bot): try: history = bot.history[input.chan] except KeyError: - bot.history[input.chan] = deque(maxlen=1000) + bot.history[input.chan] = deque(maxlen=100) history = bot.history[input.chan] data = (input.nick, message_time, input.msg)