diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-24 01:24:04 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-03-24 01:24:04 +0000 |
| commit | 3495e8a5751ab81e1521b4c4c104f0020bd2ddd8 (patch) | |
| tree | 06753a4f24892d0e3827b6653d6206dcd07e0020 /src/modules | |
| parent | b7a995c1f132296d979e52a97ca06c4ce1553eec (diff) | |
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
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/ns_maxemail.c | 4 |
1 files 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<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; |
