summaryrefslogtreecommitdiff
path: root/src/hostserv.c
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2010-06-16 23:50:33 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2010-06-16 23:50:33 +0000
commitb766b3a5976e3392a833e441ade8c06b47d8aebe (patch)
tree04d35cffd9f84d22059cb150ec4fa3ad6749f537 /src/hostserv.c
parent834f4d1bf0c228f35f392808d3882ec3c1a43444 (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.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());