spelling fix
This commit is contained in:
parent
446ab2cfa4
commit
fd2bcf9b44
2
irc.go
2
irc.go
@ -22,7 +22,7 @@ type Connection struct {
|
|||||||
channels []string
|
channels []string
|
||||||
}
|
}
|
||||||
|
|
||||||
//SendPong replies to the recieved PING
|
//SendPong replies to the received PING
|
||||||
func (c *Connection) SendPong(ping string) {
|
func (c *Connection) SendPong(ping string) {
|
||||||
pong := strings.Replace(ping, "PING", "PONG", 1)
|
pong := strings.Replace(ping, "PING", "PONG", 1)
|
||||||
c.Sock.Write([]byte(fmt.Sprintf("%s\n", pong)))
|
c.Sock.Write([]byte(fmt.Sprintf("%s\n", pong)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user