Minor tweaks to play nicely with the new go tool

This commit is contained in:
lye
2012-03-28 01:15:26 -05:00
parent f2faa10846
commit 4f82a31c9c
4 changed files with 2 additions and 11 deletions

50
irc_struct.go Normal file
View File

@@ -0,0 +1,50 @@
// Copyright 2009 Thomas Jager <mail@jager.no> All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package irc
import (
"net"
"time"
"crypto/tls"
)
type IRCConnection struct {
Error chan error
Log chan string
Password string
SSLConfig *tls.Config
socket net.Conn
pread, pwrite chan string
syncreader, syncwriter chan bool
reconnecting bool
nick string //The nickname we want.
nickcurrent string //The nickname we currently have.
user string
registered bool
server string
events map[string][]func(*IRCEvent)
lastMessage time.Time
ticker <-chan time.Time
ticker2 <-chan time.Time
VerboseCallbackHandler bool
quitting bool
}
type IRCEvent struct {
Code string
Message string
Raw string
Nick string //<nick>
Host string //<nick>!<usr>@<host>
Source string //<host>
User string //<usr>
Arguments []string
}