summaryrefslogtreecommitdiff
path: root/src/hostserv.c
diff options
context:
space:
mode:
authorCharles <chaz@anope.org>2010-06-18 21:04:30 +0100
committerCharles <chaz@anope.org>2010-06-18 21:04:30 +0100
commit184b96946adf910857536cebc2b5f80a18ce91e4 (patch)
treefe0f7a71864e268b107f21cc3bd687c75bbba84e /src/hostserv.c
parent475f5afafc61504c20968a8107b4fa7ec9c5ab2c (diff)
parenta8b6e44c69cee872c1a5e1193723242c8191104c (diff)
Merge svn with git
Diffstat (limited to 'src/hostserv.c')
-rw-r--r--src/hostserv.c6
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());