mirror of
https://github.com/anope/anope.git
synced 2026-07-02 04:46:39 +02:00
Do not allow unconfirmed users to send memos or request vhosts
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user