Return early after !ping

This commit is contained in:
gpkvt 2022-08-12 10:22:38 +02:00
parent 776570dbbb
commit 89ee9374fe
1 changed files with 2 additions and 0 deletions

2
tts.py
View File

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