mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-28 09:48:13 -07:00
Implement draft/message-redaction (#2065)
* Makefile: Add dependencies between targets * Implement draft/message-redaction for channels Permission to use REDACT mirrors permission for 'HistServ DELETE' * Error when the given targetmsg does not exist * gofmt * Add CanDelete enum type * gofmt * Add support for PMs * Fix documentation of allow-individual-delete. * Remove 'TODO: add configurable fallback' slingamn says it's probably not desirable, and I'm on the fence. Out of laziness, let's omit it for now, as it's not a regression compared to '/msg HistServ DELETE'. * Revert "Makefile: Add dependencies between targets" This reverts commit 2182b1da69ceaafad30859e45be0645d6c915b2c. --------- Co-authored-by: Val Lorentz <progval+git+ergo@progval.net>
This commit is contained in:
+7
-2
@@ -7,9 +7,9 @@ package caps
|
||||
|
||||
const (
|
||||
// number of recognized capabilities:
|
||||
numCapabs = 32
|
||||
numCapabs = 33
|
||||
// length of the uint32 array that represents the bitset:
|
||||
bitsetLen = 1
|
||||
bitsetLen = 2
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -57,6 +57,10 @@ const (
|
||||
// https://gist.github.com/DanielOaks/8126122f74b26012a3de37db80e4e0c6
|
||||
Languages Capability = iota
|
||||
|
||||
// MessageRedaction is the proposed IRCv3 capability named "draft/message-redaction":
|
||||
// https://github.com/progval/ircv3-specifications/blob/redaction/extensions/message-redaction.md
|
||||
MessageRedaction Capability = iota
|
||||
|
||||
// Multiline is the proposed IRCv3 capability named "draft/multiline":
|
||||
// https://github.com/ircv3/ircv3-specifications/pull/398
|
||||
Multiline Capability = iota
|
||||
@@ -156,6 +160,7 @@ var (
|
||||
"draft/chathistory",
|
||||
"draft/event-playback",
|
||||
"draft/languages",
|
||||
"draft/message-redaction",
|
||||
"draft/multiline",
|
||||
"draft/persistence",
|
||||
"draft/pre-away",
|
||||
|
||||
Reference in New Issue
Block a user