summaryrefslogtreecommitdiff
path: root/modules/commands
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands')
-rw-r--r--modules/commands/hs_request.cpp6
-rw-r--r--modules/commands/ms_send.cpp6
2 files changed, 12 insertions, 0 deletions
diff --git a/modules/commands/hs_request.cpp b/modules/commands/hs_request.cpp
index 498b51afb..616b2e772 100644
--- a/modules/commands/hs_request.cpp
+++ b/modules/commands/hs_request.cpp
@@ -96,6 +96,12 @@ class CommandHSRequest : public Command
return;
}
+ if (source.GetAccount()->HasExt("UNCONFIRMED"))
+ {
+ source.Reply(_("You must confirm your account before you may request a vhost."));
+ return;
+ }
+
Anope::string rawhostmask = params[0];
Anope::string user, host;
diff --git a/modules/commands/ms_send.cpp b/modules/commands/ms_send.cpp
index eb3c98eca..f8f857607 100644
--- a/modules/commands/ms_send.cpp
+++ b/modules/commands/ms_send.cpp
@@ -39,6 +39,12 @@ class CommandMSSend : public Command
return;
}
+ if (source.GetAccount()->HasExt("UNCONFIRMED"))
+ {
+ source.Reply(_("You must confirm your account before you may send a memo."));
+ return;
+ }
+
MemoServService::MemoResult result = memoserv->Send(source.GetNick(), nick, text);
if (result == MemoServService::MEMO_SUCCESS)
source.Reply(_("Memo sent to \002%s\002."), nick.c_str());