OPER command

This commit is contained in:
Jeremy Latt 2012-12-09 20:24:53 -08:00
parent 85e2f65b1b
commit 41e79e3b09
5 changed files with 119 additions and 33 deletions

View file

@ -6,17 +6,27 @@ import (
)
type Client struct {
conn net.Conn
hostname string
send chan<- Reply
recv <-chan string
// communication
conn net.Conn
send chan<- Reply
recv <-chan string
// basic info
username string
realname string
hostname string
nick string
registered bool
invisible bool
channels ChannelSet
server *Server
serverPass bool
// modes
away bool
registered bool
invisible bool
wallOps bool
restricted bool
operator bool
localOperator bool
// relations
server *Server
channels ChannelSet
}
type ClientSet map[*Client]bool