1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-05 08:53:14 +02:00

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.
This commit is contained in:
Val Lorentz
2023-05-28 07:57:36 +02:00
committed by GitHub
parent b6179d87d0
commit f768b34050
+1
View File
@@ -48,6 +48,7 @@ MOD_INIT()
MOD_LOAD()
{
ISupportSetFmt(modinfo->handle, "CHATHISTORY", "%d", CHATHISTORY_LIMIT);
ISupportSetFmt(modinfo->handle, "MSGREFTYPES", "msgid,timestamp");
return MOD_SUCCESS;
}