From 3fe5aa037ac907a2e557cc5019588344eaf8dc9f Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Tue, 17 Feb 2009 02:02:20 +0000 Subject: Fix numerous errors in Win32 building under Visual Studio due to the many changes to trunk. Trunk now builds under Windows like it should. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2106 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/bs_badwords.c | 2 +- src/core/ns_recover.c | 2 +- src/core/ns_release.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core') diff --git a/src/core/bs_badwords.c b/src/core/bs_badwords.c index ad1bb7e49..5c6c77199 100644 --- a/src/core/bs_badwords.c +++ b/src/core/bs_badwords.c @@ -68,7 +68,7 @@ class CommandBSBadwords : public Command return MOD_CONT; } - pos = strrchr(word, ' '); + pos = strrchr(const_cast(word), ' '); // XXX - Potentially unsafe cast if (pos) { opt = pos + 1; diff --git a/src/core/ns_recover.c b/src/core/ns_recover.c index b4e3b9d44..98e4a9512 100644 --- a/src/core/ns_recover.c +++ b/src/core/ns_recover.c @@ -89,7 +89,7 @@ class CommandNSRecover : public Command duration(u->nc, relstr, sizeof(relstr), NSReleaseTimeout); notice_help(s_NickServ, u, NICK_HELP_RECOVER, relstr); - do_help_limited(s_NickServ, u, this); + //do_help_limited(s_NickServ, u, this); return MOD_CONT; } diff --git a/src/core/ns_release.c b/src/core/ns_release.c index 3767fbbb8..d2ce4c57e 100644 --- a/src/core/ns_release.c +++ b/src/core/ns_release.c @@ -77,7 +77,7 @@ class CommandNSRelease : public Command duration(u->nc, relstr, sizeof(relstr), NSReleaseTimeout); notice_help(s_NickServ, u, NICK_HELP_RELEASE, relstr); - do_help_limited(s_NickServ, u, this); + //do_help_limited(s_NickServ, u, this); return true; } -- cgit