1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 04:43:13 +02:00

Partial fix for NS REGISTER not displaying syntax error if only 1 argument is given, not completely fixed due to how OnSyntaxError is called, problem spotted by DukePyrolator, thanks!

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2200 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
cyberbotx
2009-03-23 18:30:30 +00:00
parent ca28b7c1b3
commit da43e02228
+2 -2
View File
@@ -34,14 +34,14 @@ static Module *me;
class CommandNSRegister : public Command
{
public:
CommandNSRegister() : Command("REGISTER", 2, 2)
CommandNSRegister() : Command("REGISTER", 1, 2)
{
this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
}
CommandReturn Execute(User *u, std::vector<std::string> &params)
{
return check_email_limit_reached(params[1].c_str(), u);
return check_email_limit_reached(params.size() > 1 ? params[1].c_str() : NULL, u);
}
void OnSyntaxError(User *u)