diff options
author | Adam <Adam@anope.org> | 2013-09-20 21:07:50 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-09-20 21:09:35 -0400 |
commit | e5ece18ee7804ed81f1b0f80af30a9aea8320522 (patch) | |
tree | 11ef551790936e22fb54122441fd152566ed0c17 /modules/commands/greet.cpp | |
parent | 8641b995c43593289dc4e66cbf980069b80d6d6b (diff) |
Readonlyize many commands
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) { |