3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-11 06:29:29 +01:00

strings: Remove CTCP stuff, unused

This commit is contained in:
Daniel Oaks 2016-09-12 12:33:37 +10:00
parent 266c534af9
commit bc42960552

View File

@ -94,12 +94,3 @@ func NewText(str string) Text {
func (text Text) String() string { func (text Text) String() string {
return string(text) return string(text)
} }
// CTCPText is text suitably escaped for CTCP.
type CTCPText string
var ctcpEscaper = strings.NewReplacer("\x00", "\x200", "\n", "\x20n", "\r", "\x20r")
func NewCTCPText(str string) CTCPText {
return CTCPText(ctcpEscaper.Replace(str))
}