From 3495e8a5751ab81e1521b4c4c104f0020bd2ddd8 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Tue, 24 Mar 2009 01:24:04 +0000 Subject: [PATCH] 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 --- src/modules/ns_maxemail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/ns_maxemail.c b/src/modules/ns_maxemail.c index 3a7310433..8af24416f 100644 --- a/src/modules/ns_maxemail.c +++ b/src/modules/ns_maxemail.c @@ -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 ¶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;