mirror of
https://github.com/fluffle/goirc
synced 2025-07-05 21:09:24 +00:00
Run gofmt, since it's clearly been a while.
This commit is contained in:
parent
a674267128
commit
f27e56c8b0
9 changed files with 51 additions and 49 deletions
|
@ -9,8 +9,8 @@ import (
|
|||
|
||||
// sets up the internal event handlers to do essential IRC protocol things
|
||||
var intHandlers = map[string]HandlerFunc{
|
||||
"001": (*Conn).h_001,
|
||||
"433": (*Conn).h_433,
|
||||
"001": (*Conn).h_001,
|
||||
"433": (*Conn).h_433,
|
||||
"CTCP": (*Conn).h_CTCP,
|
||||
"NICK": (*Conn).h_NICK,
|
||||
"PING": (*Conn).h_PING,
|
||||
|
@ -99,7 +99,9 @@ func (conn *Conn) h_PRIVMSG(line *Line) {
|
|||
}
|
||||
}
|
||||
cmd, l := conn.cmdMatch(txt)
|
||||
if cmd == nil { return }
|
||||
if cmd == nil {
|
||||
return
|
||||
}
|
||||
if conn.CommandStripPrefix {
|
||||
txt = strings.TrimSpace(txt[l:])
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue