From b952a498c188074c3cdcb7c44566e0f054765731 Mon Sep 17 00:00:00 2001 From: gpkvt Date: Fri, 12 Aug 2022 10:22:38 +0200 Subject: [PATCH] Return early after !ping --- tts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tts.py b/tts.py index 8ab5412..ceccd82 100644 --- a/tts.py +++ b/tts.py @@ -174,6 +174,8 @@ class IRC: logging.debug('Ping check received.') self.sendpriv(conf['IRC_CHANNEL'], "@"+str(user), "Pong!") + return True + if msg.startswith('!ptts'): logging.debug("!ptts command detected") user = msg.replace('!ptts', '').strip().lower()