remove support for voiced users

--HG--
branch : nmdc-ircfrontend
This commit is contained in:
. 2016-05-03 18:02:10 +12:00
parent cb736df27c
commit a9f1283dd6

View File

@ -53,28 +53,22 @@ type Channel struct {
type ClientMode struct { type ClientMode struct {
operator bool //Channel operator operator bool //Channel operator
voice bool //Has voice
} }
func (m *ClientMode) Prefix() string { func (m *ClientMode) Prefix() string {
if m.operator { if m.operator {
return "@" return "@"
} else if m.voice {
return "+"
} else { } else {
return "" return ""
} }
} }
func (m *ClientMode) String() string { func (m *ClientMode) String() string {
modeStr := ""
if m.operator { if m.operator {
modeStr += "o" return "o"
} else {
return ""
} }
if m.voice {
modeStr += "v"
}
return modeStr
} }
type signalCode int type signalCode int