From 2726802408e0938a3bb1809665b2efbc56c52219 Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Thu, 29 Aug 2013 18:15:17 +0100 Subject: [PATCH] Removed anonymous mode, currently too finnicky. --- rosella.go | 4 ---- server.go | 4 ---- 2 files changed, 8 deletions(-) diff --git a/rosella.go b/rosella.go index 5c1ce3c..b6f96f0 100644 --- a/rosella.go +++ b/rosella.go @@ -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" } diff --git a/server.go b/server.go index 47a1040..ba4ed29 100644 --- a/server.go +++ b/server.go @@ -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':