diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-17 02:02:20 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-02-17 02:02:20 +0000 |
commit | 3fe5aa037ac907a2e557cc5019588344eaf8dc9f (patch) | |
tree | 3189c4f543c52c97f9e186606fe9aa838849013f /src/users.c | |
parent | 7af9e42d2150e17139342cb56c3617dc9b75859a (diff) |
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
Diffstat (limited to 'src/users.c')
-rw-r--r-- | src/users.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/users.c b/src/users.c index 4be186909..94d8d35ed 100644 --- a/src/users.c +++ b/src/users.c @@ -149,7 +149,7 @@ void User::SetVIdent(const std::string &sident) update_host(this); } -const std::string &User::GetVIdent() const +const std::string &User::GetVIdent() const { if (ircd->vhostmode && (this->mode & ircd->vhostmode)) return this->vident; @@ -597,7 +597,7 @@ User *do_nick(const char *source, const char *nick, const char *username, const "DEFCON AKILL"); check_akill(nick, username, host, vhost, ipbuf); } - + /* As with akill checks earlier, we can't not add the user record, as the user may be exempt from bans. * Instead, we'll just wait for the IRCd to tell us they are gone. */ @@ -1005,7 +1005,7 @@ char *create_mask(User * u) // XXX: someone needs to rewrite this godawful kitten murdering pile of crap. if (strspn(mhost.c_str(), "0123456789.") == mhost.length() - && (s = strchr(mhost.c_str(), '.')) + && (s = strchr(const_cast<char *>(mhost.c_str()), '.')) // XXX - Potentially unsafe cast && (s = strchr(s + 1, '.')) && (s = strchr(s + 1, '.')) && (!strchr(s + 1, '.'))) @@ -1018,7 +1018,7 @@ char *create_mask(User * u) } else { - if ((s = strchr(mhost.c_str(), '.')) && strchr(s + 1, '.')) { + if ((s = strchr(const_cast<char *>(mhost.c_str()), '.')) && strchr(s + 1, '.')) { s = sstrdup(strchr(mhost.c_str(), '.') - 1); *s = '*'; strcpy(end, s); |