Pass uploads to Bot.group

Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/32.
This commit is contained in:
2021-01-18 11:13:25 +01:00
parent fecb135f11
commit 46d054243c
3 changed files with 7 additions and 3 deletions

View File

@ -518,9 +518,9 @@ class Bot(ClientXMPP):
miss = message.type not in self.GROUP_MESSAGE_TYPES
loop = message.nick == self.nick
other = self.nick not in message.text
other = self.nick not in message.text and not message.url
if miss or loop or other:
if miss or other or loop:
return
if message.content.startswith("@"):