mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-29 07:29:31 +01:00
review fixes
This commit is contained in:
parent
2910eda737
commit
370255bec1
@ -795,7 +795,7 @@ func LoadConfig(filename string) (config *Config, err error) {
|
|||||||
config.Channels.MaxChannelsPerClient = 100
|
config.Channels.MaxChannelsPerClient = 100
|
||||||
}
|
}
|
||||||
if config.Channels.Registration.MaxChannelsPerAccount == 0 {
|
if config.Channels.Registration.MaxChannelsPerAccount == 0 {
|
||||||
config.Channels.Registration.MaxChannelsPerAccount = 10
|
config.Channels.Registration.MaxChannelsPerAccount = 15
|
||||||
}
|
}
|
||||||
|
|
||||||
// in the current implementation, we disable history by creating a history buffer
|
// in the current implementation, we disable history by creating a history buffer
|
||||||
|
@ -1152,7 +1152,7 @@ func joinHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *Resp
|
|||||||
oper := client.Oper()
|
oper := client.Oper()
|
||||||
for i, name := range channels {
|
for i, name := range channels {
|
||||||
if config.Channels.MaxChannelsPerClient <= client.NumChannels() && oper == nil {
|
if config.Channels.MaxChannelsPerClient <= client.NumChannels() && oper == nil {
|
||||||
rb.Add(nil, server.name, ERR_UNKNOWNERROR, client.Nick(), name, client.t("You have joined too many channels already"))
|
rb.Add(nil, server.name, ERR_TOOMANYCHANNELS, client.Nick(), name, client.t("You have joined too many channels"))
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
var key string
|
var key string
|
||||||
|
@ -284,7 +284,7 @@ channels:
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
# how many channels can each account register?
|
# how many channels can each account register?
|
||||||
max-channels-per-account: 10
|
max-channels-per-account: 15
|
||||||
|
|
||||||
# operator classes
|
# operator classes
|
||||||
oper-classes:
|
oper-classes:
|
||||||
|
Loading…
Reference in New Issue
Block a user