diff options
author | Adam <Adam@anope.org> | 2016-10-09 19:51:39 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-09 19:51:39 -0400 |
commit | e7dd7159b1e1ab5b3edabc44ece5338672f8fbb4 (patch) | |
tree | 9517f02ca1c29fa247f6914398f35a44052c22ff /modules/hostserv/main/vhost.cpp | |
parent | 8ceca4fd3f9cb82bc93801d5eb682d27b2ad2f54 (diff) |
Make vhosts assignable to accounts, not nicks. Allow multiple vhosts per account.
Diffstat (limited to 'modules/hostserv/main/vhost.cpp')
-rw-r--r-- | modules/hostserv/main/vhost.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/modules/hostserv/main/vhost.cpp b/modules/hostserv/main/vhost.cpp index f7878d53c..635e3a5b4 100644 --- a/modules/hostserv/main/vhost.cpp +++ b/modules/hostserv/main/vhost.cpp @@ -1,7 +1,7 @@ /* * Anope IRC Services * - * Copyright (C) 2015-2016 Anope Team <team@anope.org> + * Copyright (C) 2016 Anope Team <team@anope.org> * * This file is part of Anope. Anope is free software; you can * redistribute it and/or modify it under the terms of the GNU @@ -67,4 +67,14 @@ time_t VHostImpl::GetCreated() void VHostImpl::SetCreated(time_t created) { Set(&VHostType::created, created); -}
\ No newline at end of file +} + +bool VHostImpl::IsDefault() +{ + return Get(&VHostType::default_); +} + +void VHostImpl::SetDefault(bool default_) +{ + Set(&VHostType::default_, default_); +} |