mirror of
https://github.com/ChronosX88/yans.git
synced 2024-11-21 11:22:19 +00:00
Change default capabilities list to transit mode
This commit is contained in:
parent
e85fb43d50
commit
c5eaa65de9
@ -97,7 +97,9 @@ func (h *Handler) handleModeReader(s *Session, arguments []string) error {
|
||||
}
|
||||
|
||||
(&s.capabilities).Remove(protocol.ModeReaderCapability)
|
||||
(&s.capabilities).Remove(protocol.ListCapability)
|
||||
(&s.capabilities).Add(protocol.Capability{Type: protocol.ReaderCapability})
|
||||
(&s.capabilities).Add(protocol.Capability{Type: protocol.ListCapability, Params: "ACTIVE NEWSGROUPS"})
|
||||
s.mode = SessionModeReader
|
||||
|
||||
return s.tconn.PrintfLine(protocol.MessageReaderModePostingProhibited) // TODO vary on auth status
|
||||
|
@ -21,7 +21,6 @@ var (
|
||||
{Type: protocol.VersionCapability, Params: "2"},
|
||||
{Type: protocol.ImplementationCapability, Params: fmt.Sprintf("%s %s", common.ServerName, common.ServerVersion)},
|
||||
{Type: protocol.ModeReaderCapability},
|
||||
{Type: protocol.ListCapability, Params: "ACTIVE NEWSGROUPS"},
|
||||
}
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user