Removed anonymous mode, currently too finnicky.
This commit is contained in:
parent
8240b650d6
commit
2726802408
@ -37,7 +37,6 @@ type Channel struct {
|
||||
}
|
||||
|
||||
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
|
||||
@ -46,9 +45,6 @@ type ChannelMode struct {
|
||||
|
||||
func (m *ChannelMode) String() string {
|
||||
modeStr := ""
|
||||
if m.anonymous {
|
||||
modeStr += "a"
|
||||
}
|
||||
if m.secret {
|
||||
modeStr += "s"
|
||||
}
|
||||
|
@ -367,8 +367,6 @@ func (s *Server) handleEvent(e Event) {
|
||||
if strings.HasPrefix(mod, "+") {
|
||||
for _, char := range mod {
|
||||
switch char {
|
||||
case 'a':
|
||||
mode.anonymous = true
|
||||
case 's':
|
||||
mode.secret = true
|
||||
case 't':
|
||||
@ -390,8 +388,6 @@ func (s *Server) handleEvent(e Event) {
|
||||
} else if strings.HasPrefix(mod, "-") {
|
||||
for _, char := range mod {
|
||||
switch char {
|
||||
case 'a':
|
||||
mode.anonymous = false
|
||||
case 's':
|
||||
mode.secret = false
|
||||
case 't':
|
||||
|
Loading…
Reference in New Issue
Block a user