diff options
Diffstat (limited to 'modules/commands/greet.cpp')
-rw-r--r-- | modules/commands/greet.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/commands/greet.cpp b/modules/commands/greet.cpp index 90f263557..242e5fb09 100644 --- a/modules/commands/greet.cpp +++ b/modules/commands/greet.cpp @@ -39,7 +39,7 @@ class CommandBSSetGreet : public Command if (Anope::ReadOnly) { - source.Reply(_("Sorry, bot option setting is temporarily disabled.")); + source.Reply(READ_ONLY_MODE); return; } @@ -86,6 +86,12 @@ class CommandNSSetGreet : public Command void Run(CommandSource &source, const Anope::string &user, const Anope::string ¶m) { + if (Anope::ReadOnly) + { + source.Reply(READ_ONLY_MODE); + return; + } + const NickAlias *na = NickAlias::Find(user); if (!na) { |