summaryrefslogtreecommitdiff
path: root/modules/nickserv/main/account.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-11-11 12:58:14 -0500
committerAdam <Adam@anope.org>2016-11-11 12:58:14 -0500
commitef5b6919e3508cc9d4c722285d9d56f5a275f650 (patch)
tree56497f0a4f5d1847bae511c72bdb2d3581df58ef /modules/nickserv/main/account.cpp
parent8dd6e3195ed7600e39935e887df2626215733dfb (diff)
Fix opers not really being serializable
Diffstat (limited to 'modules/nickserv/main/account.cpp')
-rw-r--r--modules/nickserv/main/account.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/modules/nickserv/main/account.cpp b/modules/nickserv/main/account.cpp
index 1c2266e59..1cd868194 100644
--- a/modules/nickserv/main/account.cpp
+++ b/modules/nickserv/main/account.cpp
@@ -77,6 +77,16 @@ void AccountImpl::SetLanguage(const Anope::string &lang)
Set(&AccountType::language, lang);
}
+Oper *AccountImpl::GetOper()
+{
+ return Get(&AccountType::oper);
+}
+
+void AccountImpl::SetOper(Oper *oper)
+{
+ Set(&AccountType::oper, oper);
+}
+
MemoServ::MemoInfo *AccountImpl::GetMemos()
{
return GetRef<MemoServ::MemoInfo *>();
@@ -103,11 +113,6 @@ void AccountImpl::SetDisplay(NickServ::Nick *na)
nc = this;
}
-bool AccountImpl::IsServicesOper() const
-{
- return this->o != NULL;
-}
-
bool AccountImpl::IsOnAccess(User *u)
{
Anope::string buf = u->GetIdent() + "@" + u->host, buf2, buf3;