mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-25 20:41:21 -05:00
Gemini: Remove unneeded length check
Oops, left this in accidentally.
This commit is contained in:
parent
7d24850fe9
commit
87a0877f9a
@ -68,8 +68,6 @@ class Gemini(callbacks.Plugin):
|
|||||||
self.history.setdefault(channel, None)
|
self.history.setdefault(channel, None)
|
||||||
if not self.history[channel]:
|
if not self.history[channel]:
|
||||||
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:])
|
chat = model.start_chat(history=self.history[channel][-max_history:])
|
||||||
if include:
|
if include:
|
||||||
response = chat.send_message("%s: %s" % (msg.nick, text))
|
response = chat.send_message("%s: %s" % (msg.nick, text))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user