From 62044869a33e70eb83b9a810bb8357b84759a49c Mon Sep 17 00:00:00 2001 From: Darks Date: Fri, 11 Mar 2022 19:18:41 +0100 Subject: [PATCH] Add option to not store IRC messages in the queue --- irc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/irc.py b/irc.py index aca523a..3f96b60 100644 --- a/irc.py +++ b/irc.py @@ -94,7 +94,8 @@ class IRC(object): self._send(m.replace("PING", "PONG")) # Or add a new message to inbox elif len(m): - self._inbox.put(m) + if store: + self._inbox.put(m) logging.debug(f"received {m}") def _send(self, raw):