From 6c1d764c4ff6901456b9df55727d7e80d0aa76c8 Mon Sep 17 00:00:00 2001 From: rburchell Date: Wed, 18 Feb 2009 23:54:17 +0000 Subject: [PATCH] Fix problems with registration being denied, thanks Adam. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2114 5417fbe8-f217-4b02-8779-1006273d7864 --- Changes | 1 + src/modules/ns_maxemail.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Changes b/Changes index 39269f024..8189fa738 100644 --- a/Changes +++ b/Changes @@ -8,6 +8,7 @@ Provided by Ankit - 2009 F Segfault on shutdown Provided by Adam - 2009 +F NickServ registration is sometimes denied. F Applied patch from Adam to fix some potential screwups F More fixes to bs_bot from Adam, plus an extra fix within DoAdd not covered in Adam's patch. F Fix bs_bot to use the correct parameters, patch from Adam. diff --git a/src/modules/ns_maxemail.c b/src/modules/ns_maxemail.c index 4ca17e79d..2724733d0 100644 --- a/src/modules/ns_maxemail.c +++ b/src/modules/ns_maxemail.c @@ -30,11 +30,13 @@ int NSEmailMax = 0; static Module *me; +// XXX: This should probably use an event one day. class CommandNSRegister : public Command { public: CommandNSRegister() : Command("REGISTER", 2, 2) { + this->SetFlag(CFLAG_ALLOW_UNREGISTERED); } CommandReturn Execute(User *u, std::vector ¶ms)