diff options
Diffstat (limited to 'modules/commands/hs_group.cpp')
-rw-r--r-- | modules/commands/hs_group.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/commands/hs_group.cpp b/modules/commands/hs_group.cpp index c07ce297a..5d7ffb76a 100644 --- a/modules/commands/hs_group.cpp +++ b/modules/commands/hs_group.cpp @@ -34,6 +34,12 @@ class CommandHSGroup : public Command void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) anope_override { + if (Anope::ReadOnly) + { + source.Reply(READ_ONLY_MODE); + return; + } + NickAlias *na = NickAlias::Find(source.GetNick()); if (na && source.GetAccount() == na->nc && na->HasVhost()) { |