From 87a0877f9a435eff6eb6e47d23f0443f3cff94d1 Mon Sep 17 00:00:00 2001 From: Gordon Shumway Date: Mon, 5 Aug 2024 21:24:04 -0400 Subject: [PATCH] Gemini: Remove unneeded length check Oops, left this in accidentally. --- Gemini/plugin.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Gemini/plugin.py b/Gemini/plugin.py index f123638..6191ce0 100644 --- a/Gemini/plugin.py +++ b/Gemini/plugin.py @@ -68,8 +68,6 @@ class Gemini(callbacks.Plugin): self.history.setdefault(channel, None) if not self.history[channel]: self.history[channel] = [] - if len(self.history[channel]) > max_history: - self.history[channel] = [] chat = model.start_chat(history=self.history[channel][-max_history:]) if include: response = chat.send_message("%s: %s" % (msg.nick, text))