mirror of
https://github.com/jeremyd/ergo.git
synced 2026-07-28 17:58:15 -07:00
Move all errors into errors.go
This commit is contained in:
+2
-5
@@ -6,7 +6,6 @@
|
||||
package irc
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"log"
|
||||
"net"
|
||||
@@ -32,9 +31,7 @@ const (
|
||||
)
|
||||
|
||||
var (
|
||||
// ErrNickAlreadySet is a weird error that's sent when the server's consistency has been compromised.
|
||||
ErrNickAlreadySet = errors.New("Nickname is already set")
|
||||
LoopbackIP = net.ParseIP("127.0.0.1")
|
||||
LoopbackIP = net.ParseIP("127.0.0.1")
|
||||
)
|
||||
|
||||
// Client is an IRC client.
|
||||
@@ -397,7 +394,7 @@ func (client *Client) TryResume() {
|
||||
var params []string
|
||||
if 0 < len(oldModes) {
|
||||
params = []string{channel.name, "+" + oldModes}
|
||||
for _ = range oldModes {
|
||||
for range oldModes {
|
||||
params = append(params, client.nick)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user