make roleplay.enabled default to false when unset

See #1240.
This commit is contained in:
Shivaram Lingamneni 2020-09-16 11:32:52 -04:00
parent 3ed047ccb8
commit 6a0d11d449
2 changed files with 3 additions and 5 deletions

View file

@ -18,7 +18,7 @@ const (
func sendRoleplayMessage(server *Server, client *Client, source string, targetString string, isAction bool, messageParts []string, rb *ResponseBuffer) {
config := server.Config()
if !config.Roleplay.enabled {
if !config.Roleplay.Enabled {
rb.Add(nil, client.server.name, ERR_CANNOTSENDRP, targetString, client.t("Roleplaying has been disabled by the server administrators"))
return
}