summaryrefslogtreecommitdiff
path: root/modules/commands/hs_del.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/hs_del.cpp')
-rw-r--r--modules/commands/hs_del.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/commands/hs_del.cpp b/modules/commands/hs_del.cpp
index cf1a0d84a..78c8433a0 100644
--- a/modules/commands/hs_del.cpp
+++ b/modules/commands/hs_del.cpp
@@ -22,6 +22,12 @@ class CommandHSDel : public Command
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
+ if (Anope::ReadOnly)
+ {
+ source.Reply(READ_ONLY_MODE);
+ return;
+ }
+
const Anope::string &nick = params[0];
NickAlias *na = NickAlias::Find(nick);
if (na)
@@ -56,6 +62,12 @@ class CommandHSDelAll : public Command
void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
{
+ if (Anope::ReadOnly)
+ {
+ source.Reply(READ_ONLY_MODE);
+ return;
+ }
+
const Anope::string &nick = params[0];
NickAlias *na = NickAlias::Find(nick);
if (na)