summaryrefslogtreecommitdiff
path: root/src/modules/ns_maxemail.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-19 22:36:08 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-19 22:36:08 +0000
commit3a6a3330ac46e9eb05ecbd78cbfd054624b50dfc (patch)
tree233747be9ce0d21ef8d675f2a38642d7f73aa1a0 /src/modules/ns_maxemail.c
parent086ae2c6ce91853e503048ab9e4a532c0b787a96 (diff)
Fix crash if NS SET <anything> 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
Diffstat (limited to 'src/modules/ns_maxemail.c')
-rw-r--r--src/modules/ns_maxemail.c2
1 files changed, 1 insertions, 1 deletions
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;