From 779f3788c97cccf20208392bf4284df7b42604d8 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 21 Jul 2013 18:29:35 -0400 Subject: More validation stuff from fgs --- modules/commands/ns_register.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/commands') 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("nickregdelay"); time_t reg_delay = Config->GetModule("nickserv")->Get("regdelay"); if (u && !u->HasMode("OPER") && nickregdelay && Anope::CurTime - u->timestamp < nickregdelay) -- cgit