diff options
author | Adam <Adam@anope.org> | 2013-07-21 18:29:35 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-07-21 18:29:35 -0400 |
commit | 779f3788c97cccf20208392bf4284df7b42604d8 (patch) | |
tree | c8d2744afc6419a046d812999e8e61e75eb993bf /modules/commands/ns_register.cpp | |
parent | 604da898136b9299f555336df633e30a09f44ddd (diff) |
More validation stuff from fgs
Diffstat (limited to 'modules/commands/ns_register.cpp')
-rw-r--r-- | modules/commands/ns_register.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/commands/ns_register.cpp b/modules/commands/ns_register.cpp index 5f768f6cb..fd19590e8 100644 --- a/modules/commands/ns_register.cpp +++ b/modules/commands/ns_register.cpp @@ -128,6 +128,12 @@ class CommandNSRegister : public Command return; } + if (nsregister.equals_ci("mail") && email.empty()) + { + source.Reply(_("You must specify an email address.")); + return; + } + time_t nickregdelay = Config->GetModule(this->owner)->Get<time_t>("nickregdelay"); time_t reg_delay = Config->GetModule("nickserv")->Get<time_t>("regdelay"); if (u && !u->HasMode("OPER") && nickregdelay && Anope::CurTime - u->timestamp < nickregdelay) |