From 89ee9374fecf981e119d0b899809577a7f67dfa5 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()