Browse Source

strings: Remove CTCP stuff, unused

tags/v0.1.0
Daniel Oaks 7 years ago
parent
commit
bc42960552
1 changed files with 0 additions and 9 deletions
  1. 0
    9
      irc/strings.go

+ 0
- 9
irc/strings.go View File

@@ -94,12 +94,3 @@ func NewText(str string) Text {
94 94
 func (text Text) String() string {
95 95
 	return string(text)
96 96
 }
97
-
98
-// CTCPText is text suitably escaped for CTCP.
99
-type CTCPText string
100
-
101
-var ctcpEscaper = strings.NewReplacer("\x00", "\x200", "\n", "\x20n", "\r", "\x20r")
102
-
103
-func NewCTCPText(str string) CTCPText {
104
-	return CTCPText(ctcpEscaper.Replace(str))
105
-}

Loading…
Cancel
Save