From e6592f5c22c4a8bb90a1989f087b5560b148c5b3 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 16 May 2021 02:48:10 +0200 Subject: [PATCH] Don't assume text messages have a first character in command parsing Fixes: #271 --- mumbleBot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mumbleBot.py b/mumbleBot.py index 1a46c2a..3b535d7 100644 --- a/mumbleBot.py +++ b/mumbleBot.py @@ -252,7 +252,7 @@ class MumbleBot: # you want to split the username user = user.split()[0] - if message[0] in var.config.get('commands', 'command_symbol'): + if message.startswith(tuple(var.config.get('commands', 'command_symbol'))): # remove the symbol from the message message = message[1:].split(' ', 1)