1
0
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:
Adam
2014-08-03 18:05:41 -04:00
parent 24f17de4aa
commit 6842ad36f7
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -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;
+6
View File
@@ -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());