security and spam options descriptions
This commit is contained in:
parent
99e509ea3a
commit
0767e7d0c3
1 changed files with 5 additions and 5 deletions
|
|
@ -146,20 +146,20 @@ func (b *Bot) initCommands() commandList {
|
||||||
{allowed: b.allowOwner}, // delimiter
|
{allowed: b.allowOwner}, // delimiter
|
||||||
{
|
{
|
||||||
key: roomOptionSecurityMX,
|
key: roomOptionSecurityMX,
|
||||||
description: "Enforce sender email MX check (`true` - enforce, `false` - disable)",
|
description: "only accept email from servers which seem prepared to receive it (those having valid MX records) (`true` - enable, `false` - disable)",
|
||||||
sanitizer: utils.SanitizeBoolString,
|
sanitizer: utils.SanitizeBoolString,
|
||||||
allowed: b.allowOwner,
|
allowed: b.allowOwner,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: roomOptionSecuritySMTP,
|
key: roomOptionSecuritySMTP,
|
||||||
description: "Enforce sender email SMTP check (`true` - enforce, `false` - disable)",
|
description: "only accept email from servers which seem prepared to receive it (those listening on an SMTP port) (`true` - enable, `false` - disable)",
|
||||||
sanitizer: utils.SanitizeBoolString,
|
sanitizer: utils.SanitizeBoolString,
|
||||||
allowed: b.allowOwner,
|
allowed: b.allowOwner,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key: roomOptionSpamEmails,
|
key: roomOptionSpamEmails,
|
||||||
description: fmt.Sprintf(
|
description: fmt.Sprintf(
|
||||||
"Get or set `%s` of the room (comma-separated list)",
|
"Get or set `%s` of the room (comma-separated list), eg: `spammer@example.com,sspam@example.org`",
|
||||||
roomOptionSpamEmails,
|
roomOptionSpamEmails,
|
||||||
),
|
),
|
||||||
sanitizer: utils.SanitizeStringSlice,
|
sanitizer: utils.SanitizeStringSlice,
|
||||||
|
|
@ -168,7 +168,7 @@ func (b *Bot) initCommands() commandList {
|
||||||
{
|
{
|
||||||
key: roomOptionSpamHosts,
|
key: roomOptionSpamHosts,
|
||||||
description: fmt.Sprintf(
|
description: fmt.Sprintf(
|
||||||
"Get or set `%s` of the room (comma-separated list)",
|
"Get or set `%s` of the room (comma-separated list), eg: `gmail.com,hotmail.com,outlook.com`",
|
||||||
roomOptionSpamHosts,
|
roomOptionSpamHosts,
|
||||||
),
|
),
|
||||||
sanitizer: utils.SanitizeStringSlice,
|
sanitizer: utils.SanitizeStringSlice,
|
||||||
|
|
@ -177,7 +177,7 @@ func (b *Bot) initCommands() commandList {
|
||||||
{
|
{
|
||||||
key: roomOptionSpamLocalparts,
|
key: roomOptionSpamLocalparts,
|
||||||
description: fmt.Sprintf(
|
description: fmt.Sprintf(
|
||||||
"Get or set `%s` of the room (comma-separated list)",
|
"Get or set `%s` of the room (comma-separated list), eg: `notspam,noreply,no-rely`",
|
||||||
roomOptionSpamLocalparts,
|
roomOptionSpamLocalparts,
|
||||||
),
|
),
|
||||||
sanitizer: utils.SanitizeStringSlice,
|
sanitizer: utils.SanitizeStringSlice,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue