diff options
| author | Adam <Adam@anope.org> | 2016-11-25 16:35:10 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2016-11-25 16:35:56 -0500 |
| commit | a635344582a13d935631fbe930d79d3788359c8a (patch) | |
| tree | cd7b372d02f94c7f6c18542e06d29deff0f19842 /modules/memoserv/main/memoinfo.cpp | |
| parent | f30d99f81f6fb8abd7ca555068173bad6c99e07a (diff) | |
Rename most ext fields names to be consistent with everything else, add accessors for many
Diffstat (limited to 'modules/memoserv/main/memoinfo.cpp')
| -rw-r--r-- | modules/memoserv/main/memoinfo.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/memoserv/main/memoinfo.cpp b/modules/memoserv/main/memoinfo.cpp index 6fa8df8b1..aa5ca71e4 100644 --- a/modules/memoserv/main/memoinfo.cpp +++ b/modules/memoserv/main/memoinfo.cpp @@ -31,6 +31,7 @@ unsigned MemoInfoImpl::GetIndex(MemoServ::Memo *m) for (unsigned i = 0; i < memos.size(); ++i) if (this->GetMemo(i) == m) return i; +#warning "-1 unsigned?" return -1; // XXX wtf? } @@ -70,6 +71,16 @@ void MemoInfoImpl::SetMemoMax(const int16_t &i) Set(&MemoInfoType::memomax, i); } +bool MemoInfoImpl::IsHardMax() +{ + return Get(&MemoInfoType::hardmax); +} + +void MemoInfoImpl::SetHardMax(bool hardmax) +{ + Set(&MemoInfoType::hardmax, hardmax); +} + std::vector<MemoServ::Memo *> MemoInfoImpl::GetMemos() { return GetRefs<MemoServ::Memo *>(); |
