mirror of
https://github.com/anope/anope.git
synced 2026-06-27 20:26:38 +02:00
Fix parameters of NS SET within ns_maxemail so it doesn't break ns_set's version of it.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2204 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -53,14 +53,14 @@ class CommandNSRegister : public Command
|
||||
class CommandNSSet : public Command
|
||||
{
|
||||
public:
|
||||
CommandNSSet() : Command("SET", 2, 2)
|
||||
CommandNSSet() : Command("SET", 1, 3)
|
||||
{
|
||||
}
|
||||
|
||||
CommandReturn Execute(User *u, std::vector<std::string> ¶ms)
|
||||
{
|
||||
const char *set = params[0].c_str();
|
||||
const char *email = params[1].c_str();
|
||||
const char *email = params[1].size() > 1 ? params[1].c_str() : NULL;
|
||||
|
||||
if (!stricmp(set, "email"))
|
||||
return MOD_CONT;
|
||||
|
||||
Reference in New Issue
Block a user