Only send +draft/delivered and +draft/read on private message

This commit is contained in:
jesopo 2019-02-14 23:07:34 +00:00
parent ed99d66163
commit 4e7bfee3a6

View file

@ -6,9 +6,7 @@ DELIVERED_TAG = "+draft/delivered"
class Module(ModuleManager.BaseModule):
@utils.hook("received.message.private")
@utils.hook("received.message.channel")
@utils.hook("received.notice.private")
@utils.hook("received.notice.channel")
def privmsg(self, event):
if MSGID_TAG in event["tags"]:
target = event.get("channel", event["user"])