Removed anonymous mode, currently too finnicky.

This commit is contained in:
Harry Jeffery 2013-08-29 18:15:17 +01:00
parent 8240b650d6
commit 2726802408
2 changed files with 0 additions and 8 deletions

View File

@ -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"
}

View File

@ -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':