diff options
| author | 2019-06-20 16:52:23 +0100 | |
|---|---|---|
| committer | 2019-06-20 16:52:23 +0100 | |
| commit | 24cdff9e44c8afdbb6a1289b8da451ec1d0ba9af (patch) | |
| tree | 0a147e612ffe1b5e5c3cc1ebe982f3f853898292 /modules/ircv3_chathistory.py | |
| parent | return unshortened url when shortening fails (diff) | |
| signature | ||
Add an export for IRCv3 CAPs
Diffstat (limited to 'modules/ircv3_chathistory.py')
| -rw-r--r-- | modules/ircv3_chathistory.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/modules/ircv3_chathistory.py b/modules/ircv3_chathistory.py index 5f72850d..27daad2b 100644 --- a/modules/ircv3_chathistory.py +++ b/modules/ircv3_chathistory.py @@ -8,12 +8,8 @@ CHATHISTORY_BATCH = utils.irc.BatchType("chathistory") EVENTPLAYBACK_CAP = utils.irc.Capability(None, "draft/event-playback") HISTORY_BATCH = utils.irc.BatchType("history") +@utils.export("cap", EVENTPLAYBACK_CAP) class Module(ModuleManager.BaseModule): - @utils.hook("received.cap.ls") - @utils.hook("received.cap.new") - def on_cap(self, event): - return EVENTPLAYBACK_CAP.copy() - @utils.hook("received.batch.end") def batch_end(self, event): if (CHATHISTORY_BATCH.match(event["batch"].type) or |
