diff options
| author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-06-16 23:50:33 +0000 |
|---|---|---|
| committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-06-16 23:50:33 +0000 |
| commit | b766b3a5976e3392a833e441ade8c06b47d8aebe (patch) | |
| tree | 04d35cffd9f84d22059cb150ec4fa3ad6749f537 /src/hostserv.c | |
| parent | 834f4d1bf0c228f35f392808d3882ec3c1a43444 (diff) | |
Minor edits to fix compile errors/warnings with clang and a small compile warning under Windows (gotta work on the other 450+ Windows warnings sometime).
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@3006 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/hostserv.c')
| -rw-r--r-- | src/hostserv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hostserv.c b/src/hostserv.c index 262bf30b0..53ccd57da 100644 --- a/src/hostserv.c +++ b/src/hostserv.c @@ -111,12 +111,12 @@ void hostserv(User * u, char *buf) * @param creator Who created the vhost * @param time When the vhost was craated */ -void HostInfo::SetVhost(const std::string &ident, const std::string &host, const std::string &creator, time_t time) +void HostInfo::SetVhost(const std::string &ident, const std::string &host, const std::string &creator, time_t created) { Ident = ident; Host = host; Creator = creator; - Time = time; + Time = created; } /** Remove a users vhost @@ -197,7 +197,7 @@ void do_on_id(User *u) NickAlias *na = findnick(u->nick); if (!na || !na->hostinfo.HasVhost()) return; - + if (!u->vhost || u->vhost != na->hostinfo.GetHost() || (!na->hostinfo.GetIdent().empty() && u->GetVIdent() != na->hostinfo.GetIdent())) { ircdproto->SendVhost(u, na->hostinfo.GetIdent(), na->hostinfo.GetHost()); |
