add draft/edit CAP to ircv3_editmsg.py

This commit is contained in:
jesopo 2020-01-17 14:45:33 +00:00
parent a79f866269
commit 388ccf7a42

View file

@ -1,7 +1,9 @@
from src import ModuleManager, utils from src import ModuleManager, utils
CAP = utils.irc.Capability(None, "draft/edit", alias="edit")
DELETE_TAG = utils.irc.MessageTag(None, "draft/delete") DELETE_TAG = utils.irc.MessageTag(None, "draft/delete")
@utils.export("cap", CAP)
class Module(ModuleManager.BaseModule): class Module(ModuleManager.BaseModule):
@utils.hook("received.tagmsg.private") @utils.hook("received.tagmsg.private")
@utils.hook("received.tagmsg.channel") @utils.hook("received.tagmsg.channel")