mirror of
https://github.com/anope/anope.git
synced 2026-07-02 09:06:38 +02:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user