Add strikethrough to message filter
https://modern.ircdocs.horse/formatting.html
This commit is contained in:
parent
14f3614f28
commit
916eeaf7dd
@ -87,7 +87,7 @@ func (e *Event) Message() string {
|
|||||||
|
|
||||||
// https://stackoverflow.com/a/10567935/6754440
|
// https://stackoverflow.com/a/10567935/6754440
|
||||||
// Regex of IRC formatting.
|
// Regex of IRC formatting.
|
||||||
var ircFormat = regexp.MustCompile(`[\x02\x1F\x0F\x16\x1D]|\x03(\d\d?(,\d\d?)?)?`)
|
var ircFormat = regexp.MustCompile(`[\x02\x1F\x0F\x16\x1D\x1E]|\x03(\d\d?(,\d\d?)?)?`)
|
||||||
|
|
||||||
// Retrieve the last message from Event arguments, but without IRC formatting (color.
|
// Retrieve the last message from Event arguments, but without IRC formatting (color.
|
||||||
// This function leaves the arguments untouched and
|
// This function leaves the arguments untouched and
|
||||||
|
Loading…
Reference in New Issue
Block a user