minor improvement

master
Aevann 2023-03-26 14:57:03 +02:00
parent f1605efd60
commit 363f1f315d
1 changed files with 1 additions and 0 deletions

View File

@ -323,6 +323,7 @@ def handle_youtube_links(url):
@with_sigalrm_timeout(10)
def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_emojis=False, snappy=False, chat=False, blackjack=None):
sanitized = sanitized.strip()
if not sanitized: return ''
if blackjack and execute_blackjack(g.v, None, sanitized, blackjack):
sanitized = 'g'