remove support for voiced users
--HG-- branch : nmdc-ircfrontend
This commit is contained in:
parent
cb736df27c
commit
a9f1283dd6
12
typedefs.go
12
typedefs.go
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user