mirror of
https://github.com/fluffle/goirc
synced 2025-05-13 11:03:19 +00:00
Run gofmt over code, it's been a while.
This commit is contained in:
parent
18c20080e8
commit
c400a2141a
7 changed files with 53 additions and 54 deletions
|
@ -24,7 +24,7 @@ type Conn struct {
|
|||
Network string
|
||||
|
||||
// Event handler registry and dispatcher
|
||||
Registry event.EventRegistry
|
||||
Registry event.EventRegistry
|
||||
Dispatcher event.EventDispatcher
|
||||
|
||||
// Map of channels we're on
|
||||
|
@ -76,21 +76,21 @@ type Conn struct {
|
|||
func New(nick, user, name string) *Conn {
|
||||
reg := event.NewRegistry()
|
||||
conn := &Conn{
|
||||
Registry: reg,
|
||||
Registry: reg,
|
||||
Dispatcher: reg,
|
||||
in: make(chan *Line, 32),
|
||||
out: make(chan string, 32),
|
||||
Err: make(chan os.Error, 4),
|
||||
cSend: make(chan bool),
|
||||
cLoop: make(chan bool),
|
||||
SSL: false,
|
||||
SSLConfig: nil,
|
||||
Timeout: 300,
|
||||
Flood: false,
|
||||
badness: 0,
|
||||
lastsent: 0,
|
||||
Timestamp: time.LocalTime,
|
||||
TSFormat: "15:04:05",
|
||||
in: make(chan *Line, 32),
|
||||
out: make(chan string, 32),
|
||||
Err: make(chan os.Error, 4),
|
||||
cSend: make(chan bool),
|
||||
cLoop: make(chan bool),
|
||||
SSL: false,
|
||||
SSLConfig: nil,
|
||||
Timeout: 300,
|
||||
Flood: false,
|
||||
badness: 0,
|
||||
lastsent: 0,
|
||||
Timestamp: time.LocalTime,
|
||||
TSFormat: "15:04:05",
|
||||
}
|
||||
conn.initialise()
|
||||
conn.SetupHandlers()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue