From 3a6a3330ac46e9eb05ecbd78cbfd054624b50dfc Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Sun, 19 Apr 2009 22:36:08 +0000 Subject: [PATCH] Fix crash if NS SET was used without a parameter, spotted and patched by Adam. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2286 5417fbe8-f217-4b02-8779-1006273d7864 --- src/modules/ns_maxemail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/ns_maxemail.c b/src/modules/ns_maxemail.c index cb4684998..3a93eb5d7 100644 --- a/src/modules/ns_maxemail.c +++ b/src/modules/ns_maxemail.c @@ -113,7 +113,7 @@ class NSMaxEmail : public Module else if (command == "SET") { const char *set = params[0].c_str(); - const char *email = params[1].size() > 1 ? params[1].c_str() : NULL; + const char *email = params.size() > 1 ? params[1].c_str() : NULL; if (!stricmp(set, "email") && check_email_limit_reached(email, u)) return EVENT_STOP;