away modes

This commit is contained in:
Jeremy Latt
2014-02-11 15:44:58 -08:00
parent cdae59ecf5
commit 08d9d5ab79
6 changed files with 79 additions and 24 deletions

View File

@@ -11,23 +11,24 @@ import (
)
type Client struct {
away bool
channels ChannelSet
conn net.Conn
hostname string
idleTimer *time.Timer
invisible bool
nick string
operator bool
quitTimer *time.Timer
realname string
recv *bufio.Reader
registered bool
replies chan<- Reply
send *bufio.Writer
server *Server
serverPass bool
username string
away bool
awayMessage string
channels ChannelSet
conn net.Conn
hostname string
idleTimer *time.Timer
invisible bool
nick string
operator bool
quitTimer *time.Timer
realname string
recv *bufio.Reader
registered bool
replies chan<- Reply
send *bufio.Writer
server *Server
serverPass bool
username string
}
func NewClient(server *Server, conn net.Conn) *Client {