Disable channel modes and remove some client modes.

This commit is contained in:
Jeremy Latt 2012-12-11 23:04:03 -08:00
parent c99bc6b453
commit dbaa73a319
6 changed files with 31 additions and 100 deletions

View file

@ -7,27 +7,19 @@ import (
)
type Client struct {
// communication
conn net.Conn
send chan<- Reply
recv <-chan string
// basic info
conn net.Conn
send chan<- Reply
recv <-chan string
username string
realname string
hostname string
nick string
serverPass bool
registered bool
// modes
away bool
invisible bool
wallOps bool
restricted bool
operator bool
localOperator bool
// relations
server *Server
channels ChannelSet
away bool
wallOps bool
server *Server
channels ChannelSet
}
type ClientSet map[*Client]bool
@ -77,14 +69,10 @@ func (c *Client) Nick() string {
}
func (c *Client) UModeString() string {
mode := "+"
if c.invisible {
mode += "i"
}
if c.wallOps {
mode += "w"
return "+w"
}
return mode
return ""
}
func (c *Client) HasNick() bool {