Added mode structures

This commit is contained in:
Harry Jeffery 2013-08-27 18:24:41 +01:00
parent 4c809e6d42
commit 8ceb23296d

View File

@ -32,6 +32,20 @@ type Channel struct {
name string name string
topic string topic string
clientMap map[string]*Client clientMap map[string]*Client
mode ChannelMode
modeMap map[string]*ClientMode
}
type ChannelMode struct {
anonymous bool //Nicks are hidden
secret bool //Channel is hidden from LIST
topicLocked bool //Only ops may change topic
moderated bool //Only ops and voiced may speak
}
type ClientMode struct {
operator bool //Channel operator
voice bool //Has voice
} }
type signalCode int type signalCode int