From f768b34050db2d7b98fc942bf5de970b17b0e32d Mon Sep 17 00:00:00 2001 From: Val Lorentz Date: Sun, 28 May 2023 07:57:36 +0200 Subject: [PATCH] chathistory: Advertize MSGREFTYPES ISUPPORT token (#251) https://ircv3.net/specs/extensions/chathistory#isupport-tokens The spec says they should be 'in order of decreasing preference'. As currently the only backend is in-memory, this doesn't matter so I picked `msgid` first (as it's less ambiguous); but this can be revisited later if/when adding a backend which is more efficient with timestamps. --- src/modules/chathistory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/chathistory.c b/src/modules/chathistory.c index 5f6965027..4be884ed9 100644 --- a/src/modules/chathistory.c +++ b/src/modules/chathistory.c @@ -48,6 +48,7 @@ MOD_INIT() MOD_LOAD() { ISupportSetFmt(modinfo->handle, "CHATHISTORY", "%d", CHATHISTORY_LIMIT); + ISupportSetFmt(modinfo->handle, "MSGREFTYPES", "msgid,timestamp"); return MOD_SUCCESS; }