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 {
operator bool //Channel operator
voice bool //Has voice
}
func (m *ClientMode) Prefix() string {
if m.operator {
return "@"
} else if m.voice {
return "+"
} else {
return ""
}
}
func (m *ClientMode) String() string {
modeStr := ""
if m.operator {
modeStr += "o"
return "o"
} else {
return ""
}
if m.voice {
modeStr += "v"
}
return modeStr
}
type signalCode int