Merge branch 'master' into management

This commit is contained in:
Tulir Asokan 2018-10-30 21:44:53 +02:00
commit 0148f74d90
2 changed files with 2 additions and 2 deletions

View file

@ -1 +1 @@
__version__ = "0.1.0.dev4" __version__ = "0.1.0.dev5"

View file

@ -84,7 +84,7 @@ class MaubotMatrixClient(MatrixClient):
pass pass
async def _command_event_handler(self, evt: MessageEvent) -> None: async def _command_event_handler(self, evt: MessageEvent) -> None:
if evt.sender == self.mxid or evt.content.msgtype != MessageType.TEXT: if evt.sender == self.mxid or evt.content.msgtype == MessageType.NOTICE:
return return
for command in self.commands: for command in self.commands:
if command.match(evt): if command.match(evt):