strings: Remove CTCP stuff, unused

This commit is contained in:
Daniel Oaks 2016-09-12 12:33:37 +10:00
parent 266c534af9
commit bc42960552
1 changed files with 0 additions and 9 deletions

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))
}