diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-07-25 00:37:43 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-07-25 00:37:43 +0000 |
| commit | b2a57b09742da6c2f2011ad41eb470139d88e14f (patch) | |
| tree | 054e41a724108706c5ea5f659d2065fe5fae2504 /src/modules/ns_maxemail.c | |
| parent | 443654f15bf036bb18f9847332e2bd03ec823b3d (diff) | |
Changed params parameter of Command's Execute() from std::vector<std::string> to std::vector<ci::string>, seems to have no ill effects but may require some testing to be sure.
Also a few minor cleanups here and there.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2392 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules/ns_maxemail.c')
| -rw-r--r-- | src/modules/ns_maxemail.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/ns_maxemail.c b/src/modules/ns_maxemail.c index 3a93eb5d7..819f48265 100644 --- a/src/modules/ns_maxemail.c +++ b/src/modules/ns_maxemail.c @@ -101,7 +101,7 @@ class NSMaxEmail : public Module my_load_config(); } - EventReturn OnPreCommand(User *u, const std::string &service, const std::string &command, const std::vector<std::string> ¶ms) + EventReturn OnPreCommand(User *u, const std::string &service, const ci::string &command, const std::vector<ci::string> ¶ms) { if (service == s_NickServ) { @@ -112,10 +112,10 @@ class NSMaxEmail : public Module } else if (command == "SET") { - const char *set = params[0].c_str(); + ci::string set = params[0]; const char *email = params.size() > 1 ? params[1].c_str() : NULL; - if (!stricmp(set, "email") && check_email_limit_reached(email, u)) + if (set == "email" && check_email_limit_reached(email, u)) return EVENT_STOP; } } |
