summaryrefslogtreecommitdiff
path: root/irc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--irc/tokens.go11
-rw-r--r--irc/typing.go2
2 files changed, 3 insertions, 10 deletions
diff --git a/irc/tokens.go b/irc/tokens.go
index aa5d4b6..f7569a1 100644
--- a/irc/tokens.go
+++ b/irc/tokens.go
@@ -22,7 +22,7 @@ func CasemapASCII(name string) string {
return sb.String()
}
-// CasemapASCII of name is the canonical representation of name according to the
+// CasemapRFC1459 of name is the canonical representation of name according to the
// rfc-1459 casemapping.
func CasemapRFC1459(name string) string {
var sb strings.Builder
@@ -57,7 +57,7 @@ func word(s string) (word, rest string) {
return
}
-// tagEscape returns the the value of '\c' given c according to the message-tags
+// tagEscape returns the value of '\c' given c according to the message-tags
// specification.
func tagEscape(c rune) (escape rune) {
switch c {
@@ -157,13 +157,6 @@ var (
errIncompleteMessage = errors.New("message is incomplete")
)
-var (
- errEmptyBatchID = errors.New("empty BATCH ID")
- errNoPrefix = errors.New("missing prefix")
- errNotEnoughParams = errors.New("not enough params")
- errUnknownCommand = errors.New("unknown command")
-)
-
type Prefix struct {
Name string
User string
diff --git a/irc/typing.go b/irc/typing.go
index 5a3073c..fd1576c 100644
--- a/irc/typing.go
+++ b/irc/typing.go
@@ -69,7 +69,7 @@ func (ts *Typings) Active(target, name string) {
}()
}
-// Active should be called when a user is done typing to some target.
+// Done should be called when a user is done typing to some target.
func (ts *Typings) Done(target, name string) {
ts.l.Lock()
delete(ts.targets, Typing{target, name})