capture_give: fix crashing typo

This commit is contained in:
dece 2022-06-16 12:07:23 +02:00
parent 0d49fb1457
commit 2ecec9eeb2

View file

@ -30,7 +30,7 @@ class CaptureGivePlugin(Plugin):
# "give" command. # "give" command.
if self.command.ident == self.config["commands"][0]: if self.command.ident == self.config["commands"][0]:
content = self.command.raw[len(self.command.matched):].strip() content = self.command.raw[len(self.command.matched):].strip()
matched = self.content_re.matched(content) matched = self.content_re.match(content)
if not matched: if not matched:
return False return False
groups = matched.groupdict() groups = matched.groupdict()