diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-11 00:07:53 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-11 00:07:53 +0000 |
| commit | 87c8744724cc43ac8cd45b09967227514da064a0 (patch) | |
| tree | 85f266009894ee86b208ecf105eb91491e7f2038 /src/modules/ns_maxemail.c | |
| parent | 6f9f2617e7af08f30177c9c8a7650b6df9abd9d6 (diff) | |
Fixed compile errors within src/modules/*.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2001 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules/ns_maxemail.c')
| -rw-r--r-- | src/modules/ns_maxemail.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/ns_maxemail.c b/src/modules/ns_maxemail.c index c2be798c8..1539c81c5 100644 --- a/src/modules/ns_maxemail.c +++ b/src/modules/ns_maxemail.c @@ -21,6 +21,7 @@ void my_load_config(); void my_add_languages(); int my_event_reload(int argc, char **argv); +CommandReturn check_email_limit_reached(const char *email, User * u); int NSEmailMax = 0; @@ -37,7 +38,7 @@ class CommandNSRegister : public Command { } - CommandReturn(User *u, std::vector<std::string> ¶ms) + CommandReturn Execute(User *u, std::vector<std::string> ¶ms) { return check_email_limit_reached(params[1].c_str(), u); } @@ -147,7 +148,7 @@ class NSMaxEmail : public Module }; -int count_email_in_use(char *email, User * u) +int count_email_in_use(const char *email, User * u) { NickCore *nc; int i; @@ -168,7 +169,7 @@ int count_email_in_use(char *email, User * u) return count; } -int check_email_limit_reached(char *email, User * u) +CommandReturn check_email_limit_reached(const char *email, User * u) { if (NSEmailMax < 1 || !email || is_services_admin(u)) return MOD_CONT; |
