mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-22 11:02:06 -08:00
OPER command
This commit is contained in:
parent
85e2f65b1b
commit
41e79e3b09
5 changed files with 119 additions and 33 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue