just keep 100 messages per channel for now
This commit is contained in:
parent
b9bf09e6b6
commit
1bcf687ea2
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ def track_history(input, message_time, bot):
|
||||||
try:
|
try:
|
||||||
history = bot.history[input.chan]
|
history = bot.history[input.chan]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
bot.history[input.chan] = deque(maxlen=1000)
|
bot.history[input.chan] = deque(maxlen=100)
|
||||||
history = bot.history[input.chan]
|
history = bot.history[input.chan]
|
||||||
|
|
||||||
data = (input.nick, message_time, input.msg)
|
data = (input.nick, message_time, input.msg)
|
||||||
|
|
Reference in a new issue