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 {
|
type ChannelMode struct {
|
||||||
anonymous bool //Nicks are hidden
|
|
||||||
secret bool //Channel is hidden from LIST
|
secret bool //Channel is hidden from LIST
|
||||||
topicLocked bool //Only ops may change topic
|
topicLocked bool //Only ops may change topic
|
||||||
moderated bool //Only ops and voiced may speak
|
moderated bool //Only ops and voiced may speak
|
||||||
@ -46,9 +45,6 @@ type ChannelMode struct {
|
|||||||
|
|
||||||
func (m *ChannelMode) String() string {
|
func (m *ChannelMode) String() string {
|
||||||
modeStr := ""
|
modeStr := ""
|
||||||
if m.anonymous {
|
|
||||||
modeStr += "a"
|
|
||||||
}
|
|
||||||
if m.secret {
|
if m.secret {
|
||||||
modeStr += "s"
|
modeStr += "s"
|
||||||
}
|
}
|
||||||
|
@ -367,8 +367,6 @@ func (s *Server) handleEvent(e Event) {
|
|||||||
if strings.HasPrefix(mod, "+") {
|
if strings.HasPrefix(mod, "+") {
|
||||||
for _, char := range mod {
|
for _, char := range mod {
|
||||||
switch char {
|
switch char {
|
||||||
case 'a':
|
|
||||||
mode.anonymous = true
|
|
||||||
case 's':
|
case 's':
|
||||||
mode.secret = true
|
mode.secret = true
|
||||||
case 't':
|
case 't':
|
||||||
@ -390,8 +388,6 @@ func (s *Server) handleEvent(e Event) {
|
|||||||
} else if strings.HasPrefix(mod, "-") {
|
} else if strings.HasPrefix(mod, "-") {
|
||||||
for _, char := range mod {
|
for _, char := range mod {
|
||||||
switch char {
|
switch char {
|
||||||
case 'a':
|
|
||||||
mode.anonymous = false
|
|
||||||
case 's':
|
case 's':
|
||||||
mode.secret = false
|
mode.secret = false
|
||||||
case 't':
|
case 't':
|
||||||
|
Loading…
Reference in New Issue
Block a user