diff options
Diffstat (limited to 'modules/ircv3_msgid.py')
| -rw-r--r-- | modules/ircv3_msgid.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/modules/ircv3_msgid.py b/modules/ircv3_msgid.py deleted file mode 100644 index f95f9fd4..00000000 --- a/modules/ircv3_msgid.py +++ /dev/null @@ -1,31 +0,0 @@ -from src import ModuleManager, utils - -TAG = utils.irc.MessageTag("msgid", "draft/msgid") - -class Module(ModuleManager.BaseModule): - def _on_channel(self, channel, tags): - msgid = TAG.get_value(tags) - if not msgid == None: - channel.set_setting("last-msgid", msgid) - - @utils.hook("received.message.channel") - @utils.hook("send.message.channel") - @utils.hook("received.notice.channel") - @utils.hook("send.notice.channel") - @utils.hook("received.tagmsg.channel") - @utils.hook("send.tagmsg.channel") - def on_channel(self, event): - self._on_channel(event["channel"], event["tags"]) - - @utils.hook("received.ctcp.request") - @utils.hook("received.ctcp.response") - def ctcp(self, event): - if event["is_channel"]: - self._on_channel(event["target"], event["tags"]) - - @utils.hook("postprocess.command") - def postprocess_command(self, event): - msgid = TAG.get_value(event["line"].tags) - if msgid: - event["tags"]["+draft/reply"] = msgid - event["tags"]["+draft/reply"] = msgid |
