Actually fix the bug
This commit is contained in:
parent
cc594578b7
commit
db1ec3e854
1 changed files with 5 additions and 1 deletions
|
|
@ -87,7 +87,11 @@ class PlusOne:
|
||||||
|
|
||||||
@yaboli.trigger(PLUSONE_RE, flags=re.IGNORECASE)
|
@yaboli.trigger(PLUSONE_RE, flags=re.IGNORECASE)
|
||||||
async def trigger_plusone(self, room, message, match):
|
async def trigger_plusone(self, room, message, match):
|
||||||
specific = re.match(self.MENTION_RE, match.group(4))
|
rest = match.group(4)
|
||||||
|
if rest:
|
||||||
|
specific = re.match(self.MENTION_RE, match.group(4))
|
||||||
|
else:
|
||||||
|
specific = None
|
||||||
|
|
||||||
nick = None
|
nick = None
|
||||||
if specific:
|
if specific:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue