diff options
Diffstat (limited to 'modules/nickserv/main/account.cpp')
-rw-r--r-- | modules/nickserv/main/account.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/modules/nickserv/main/account.cpp b/modules/nickserv/main/account.cpp index 0ff20420b..9c3275cbe 100644 --- a/modules/nickserv/main/account.cpp +++ b/modules/nickserv/main/account.cpp @@ -19,7 +19,6 @@ #include "module.h" #include "accounttype.h" -#include "modules/nickserv/access.h" AccountImpl::~AccountImpl() { @@ -187,16 +186,6 @@ void AccountImpl::SetMsg(bool msg) Set(&AccountType::msg, msg); } -bool AccountImpl::IsSecure() -{ - return Get(&AccountType::secure); -} - -void AccountImpl::SetSecure(bool secure) -{ - Set(&AccountType::secure, secure); -} - bool AccountImpl::IsMemoSignon() { return Get(&AccountType::memosignon); @@ -288,23 +277,6 @@ void AccountImpl::SetDisplay(NickServ::Nick *na) nc = this; } -bool AccountImpl::IsOnAccess(User *u) -{ - Anope::string buf = u->GetIdent() + "@" + u->host, buf2, buf3; - if (!u->vhost.empty()) - buf2 = u->GetIdent() + "@" + u->vhost; - if (!u->GetCloakedHost().empty()) - buf3 = u->GetIdent() + "@" + u->GetCloakedHost(); - - for (NickAccess *access : GetRefs<NickAccess *>()) - { - Anope::string a = access->GetMask(); - if (Anope::Match(buf, a) || (!buf2.empty() && Anope::Match(buf2, a)) || (!buf3.empty() && Anope::Match(buf3, a))) - return true; - } - return false; -} - unsigned int AccountImpl::GetChannelCount() { unsigned int i = 0; |