mirror of
https://github.com/fluffle/goirc
synced 2025-05-14 03:23:21 +00:00
Use the internal event handling for initial pass/user/nick messages.
Added constants for internal and named events. gofmt'ed all files and updated client.go/documentation.
This commit is contained in:
parent
a674267128
commit
8e16f59b5f
13 changed files with 154 additions and 98 deletions
|
@ -9,19 +9,19 @@ import (
|
|||
)
|
||||
|
||||
var stHandlers = map[string]HandlerFunc{
|
||||
"JOIN": (*Conn).h_JOIN,
|
||||
"KICK": (*Conn).h_KICK,
|
||||
"MODE": (*Conn).h_MODE,
|
||||
"NICK": (*Conn).h_STNICK,
|
||||
"PART": (*Conn).h_PART,
|
||||
"QUIT": (*Conn).h_QUIT,
|
||||
"JOIN": (*Conn).h_JOIN,
|
||||
"KICK": (*Conn).h_KICK,
|
||||
"MODE": (*Conn).h_MODE,
|
||||
"NICK": (*Conn).h_STNICK,
|
||||
"PART": (*Conn).h_PART,
|
||||
"QUIT": (*Conn).h_QUIT,
|
||||
"TOPIC": (*Conn).h_TOPIC,
|
||||
"311": (*Conn).h_311,
|
||||
"324": (*Conn).h_324,
|
||||
"332": (*Conn).h_332,
|
||||
"352": (*Conn).h_352,
|
||||
"353": (*Conn).h_353,
|
||||
"671": (*Conn).h_671,
|
||||
"311": (*Conn).h_311,
|
||||
"324": (*Conn).h_324,
|
||||
"332": (*Conn).h_332,
|
||||
"352": (*Conn).h_352,
|
||||
"353": (*Conn).h_353,
|
||||
"671": (*Conn).h_671,
|
||||
}
|
||||
|
||||
func (conn *Conn) addSTHandlers() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue