diff options
author | Adam <Adam@anope.org> | 2012-02-14 15:13:27 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-02-14 15:13:27 -0500 |
commit | a9772cde21407c89abd161d51aff45267f87b1fb (patch) | |
tree | 9e57ba6c121d3843888917d968dd4f5d030b57cf /src/hostserv.cpp | |
parent | 086790d6331357022f4da17c76b26b9fc6e2ad90 (diff) |
Clean up and reorganize our header files
Diffstat (limited to 'src/hostserv.cpp')
-rw-r--r-- | src/hostserv.cpp | 79 |
1 files changed, 0 insertions, 79 deletions
diff --git a/src/hostserv.cpp b/src/hostserv.cpp deleted file mode 100644 index dde6d44ce..000000000 --- a/src/hostserv.cpp +++ /dev/null @@ -1,79 +0,0 @@ -/* HostServ functions - * - * (C) 2003-2012 Anope Team - * Contact us at team@anope.org - * - * Please read COPYING and README for further details. - * - * Based on the original code of Epona by Lara. - * Based on the original code of Services by Andy Church. - */ - -#include "services.h" -#include "modules.h" - - -/** Set a vhost for the user - * @param ident The ident - * @param host The host - * @param creator Who created the vhost - * @param time When the vhost was craated - */ -void HostInfo::SetVhost(const Anope::string &ident, const Anope::string &host, const Anope::string &creator, time_t created) -{ - Ident = ident; - Host = host; - Creator = creator; - Time = created; -} - -/** Remove a users vhost - **/ -void HostInfo::RemoveVhost() -{ - Ident.clear(); - Host.clear(); - Creator.clear(); - Time = 0; -} - -/** Check if the user has a vhost - * @return true or false - */ -bool HostInfo::HasVhost() const -{ - return !Host.empty(); -} - -/** Retrieve the vhost ident - * @return the ident - */ -const Anope::string &HostInfo::GetIdent() const -{ - return Ident; -} - -/** Retrieve the vhost host - * @return the host - */ -const Anope::string &HostInfo::GetHost() const -{ - return Host; -} - -/** Retrieve the vhost creator - * @return the creator - */ -const Anope::string &HostInfo::GetCreator() const -{ - return Creator; -} - -/** Retrieve when the vhost was crated - * @return the time it was created - */ -time_t HostInfo::GetTime() const -{ - return Time; -} - |