Update __init__.py

fixes
This commit is contained in:
Jannik 2018-02-19 00:19:08 +01:00 committed by GitHub
parent 246df07114
commit 0696a115bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,7 +238,7 @@ class NewMessage(_EventBuilder):
return
if self.outgoing and not event.message.out:
return
if self.regex and not re.match(self.regex, event.raw_text):
if self.pattern and not re.match(self.pattern, event.message.message):
return
return self._filter_event(event)