summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsjaz <sjaz@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-06 16:37:02 +0000
committersjaz <sjaz@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-06 16:37:02 +0000
commitcd034d69358ec05812cbb9e7b38c674b07e654bc (patch)
tree840b80d2f2d01bf1271add69155a7e5f631db73a
parentaf85de47c70761b910c0e19c8f3de0d28b1c8063 (diff)
Patch to allow NS CONFIRM and NS RESEND to be used by non identified users. (Thanks Adam)
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2264 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--src/core/ns_register.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/ns_register.c b/src/core/ns_register.c
index 8f011fc3f..c5a6e5120 100644
--- a/src/core/ns_register.c
+++ b/src/core/ns_register.c
@@ -184,6 +184,7 @@ class CommandNSConfirm : public Command
public:
CommandNSConfirm(const std::string &cmdn, int min, int max) : Command(cmdn, min, max)
{
+ this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
}
CommandReturn Execute(User *u, std::vector<std::string> &params)
@@ -372,6 +373,7 @@ class CommandNSResend : public Command
public:
CommandNSResend() : Command("RESEND", 0, 0)
{
+ this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
}
CommandReturn Execute(User *u, std::vector<std::string> &params)