mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
fix #1688
* Add ACCEPT-tracking functionality (authorizing users to send DMs despite +R or other applicable restrictions) * Sending a DM automatically accepts the recipient * Add explicit ACCEPT command
This commit is contained in:
parent
03092769e7
commit
c5579a6a34
10 changed files with 250 additions and 35 deletions
|
|
@ -61,6 +61,7 @@ var (
|
|||
|
||||
// Server is the main Oragono server.
|
||||
type Server struct {
|
||||
accepts AcceptManager
|
||||
accounts AccountManager
|
||||
channels ChannelManager
|
||||
channelRegistry ChannelRegistry
|
||||
|
|
@ -104,6 +105,7 @@ func NewServer(config *Config, logger *logger.Manager) (*Server, error) {
|
|||
defcon: 5,
|
||||
}
|
||||
|
||||
server.accepts.Initialize()
|
||||
server.clients.Initialize()
|
||||
server.semaphores.Initialize()
|
||||
server.whoWas.Initialize(config.Limits.WhowasEntries)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue