parent
3200c83fd0
commit
efab8928f5
@ -246,6 +246,11 @@ class MumbleBot:
|
|||||||
def message_received(self, text):
|
def message_received(self, text):
|
||||||
raw_message = text.message.strip()
|
raw_message = text.message.strip()
|
||||||
message = re.sub(r'<.*?>', '', raw_message)
|
message = re.sub(r'<.*?>', '', raw_message)
|
||||||
|
if text.actor == 0:
|
||||||
|
# Some server will send a welcome message to the bot once connected.
|
||||||
|
# It doesn't have a valid "actor". Simply ignore it here.
|
||||||
|
return
|
||||||
|
|
||||||
user = self.mumble.users[text.actor]['name']
|
user = self.mumble.users[text.actor]['name']
|
||||||
|
|
||||||
if var.config.getboolean('commands', 'split_username_at_space'):
|
if var.config.getboolean('commands', 'split_username_at_space'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user