diff options
author | Adam <Adam@anope.org> | 2014-08-03 18:05:41 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-08-03 18:05:41 -0400 |
commit | 6842ad36f7367412859232ad226071ae860d3d87 (patch) | |
tree | b3c3597bcc63371508b381433f280f856e637c53 /modules/commands/ms_send.cpp | |
parent | 24f17de4aaf736264ecdb6a20d51589d20818ad9 (diff) |
Do not allow unconfirmed users to send memos or request vhosts
Diffstat (limited to 'modules/commands/ms_send.cpp')
-rw-r--r-- | modules/commands/ms_send.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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()); |