mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-10 22:19:31 +01:00
strings: Remove CTCP stuff, unused
This commit is contained in:
parent
266c534af9
commit
bc42960552
@ -94,12 +94,3 @@ func NewText(str string) Text {
|
||||
func (text Text) String() string {
|
||||
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))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user