diff options
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 |
