Add option to not store IRC messages in the queue

This commit is contained in:
Darks 2022-03-11 19:18:41 +01:00
parent e6d40b6e0a
commit 62044869a3
Signed by: Darks
GPG Key ID: 7515644268BE1433
1 changed files with 2 additions and 1 deletions

3
irc.py
View File

@ -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):