#include <account.h>
Inherits Serializable, and Extensible.

Public Member Functions | |
| NickCore (const Anope::string &nickdisplay) | |
| ~NickCore () | |
| void | Serialize (Serialize::Data &data) const anope_override |
| void | SetDisplay (const NickAlias *na) |
| virtual bool | IsServicesOper () const |
| void | AddAccess (const Anope::string &entry) |
| Anope::string | GetAccess (unsigned entry) const |
| bool | FindAccess (const Anope::string &entry) |
| void | EraseAccess (const Anope::string &entry) |
| void | ClearAccess () |
| bool | IsOnAccess (const User *u) const |
| void | AddCert (const Anope::string &entry) |
| Anope::string | GetCert (unsigned entry) const |
| bool | FindCert (const Anope::string &entry) const |
| void | EraseCert (const Anope::string &entry) |
| void | ClearCert () |
| void | AddChannelReference (ChannelInfo *ci) |
| void | RemoveChannelReference (ChannelInfo *ci) |
| void | GetChannelReferences (std::deque< ChannelInfo * > &queue) |
Static Public Member Functions | |
| static Serializable * | Unserialize (Serializable *obj, Serialize::Data &) |
| static NickCore * | Find (const Anope::string &nick) |
Data Fields | |
| Anope::string | display |
| Anope::string | pass |
| Anope::string | |
| Anope::string | greet |
| Anope::string | language |
| std::vector< Anope::string > | access |
| std::vector< Anope::string > | cert |
| MemoInfo | memos |
| Serialize::Checker < std::vector< NickAlias * > > | aliases |
| Oper * | o |
| uint16_t | channelcount |
| time_t | lastmail |
| std::list< User * > | users |
Private Attributes | |
| Serialize::Checker< std::map < ChannelInfo *, int > > | chanaccess |
Definition at line 148 of file account.h.
| NickCore::NickCore | ( | const Anope::string & | nickdisplay | ) |
Constructor
| display | The display nick |
Definition at line 20 of file nickcore.cpp.
References channelcount, Config, display, Anope::string::empty(), Extensible::ExtendMetadata(), language, lastmail, LOG_DEBUG, MemoInfo::memomax, memos, ServerConfig::MSMaxMemos, NickCoreList, ServerConfig::NSDefFlags, ServerConfig::NSDefLanguage, and o.
Referenced by Unserialize().
| NickCore::~NickCore | ( | ) |
Definition at line 43 of file nickcore.cpp.
References chanaccess, ClearAccess(), display, FOREACH_MOD, MemoInfo::GetMemo(), I_OnDelCore, LOG_DEBUG, User::Logout(), MemoInfo::memos, memos, NickCoreList, and users.
| void NickCore::AddAccess | ( | const Anope::string & | entry | ) |
Add an entry to the nick's access list
| entry | The nick!ident entry to add to the access list |
Adds a new entry into the access list.
Definition at line 164 of file nickcore.cpp.
References access, FOREACH_MOD, and I_OnNickAddAccess.
Referenced by CommandNSAccess::DoAdd(), CommandNSRegister::Execute(), and OnDatabaseReadMetadata().
| void NickCore::AddCert | ( | const Anope::string & | entry | ) |
Add an entry to the nick's certificate list
| entry | The fingerprint to add to the cert list |
Adds a new entry into the cert list.
Definition at line 220 of file nickcore.cpp.
References cert, FOREACH_MOD, and I_OnNickAddCert.
Referenced by CommandNSCert::DoAdd(), and OnDatabaseReadMetadata().
| void NickCore::AddChannelReference | ( | ChannelInfo * | ci | ) |
Definition at line 259 of file nickcore.cpp.
References chanaccess.
Referenced by ChannelInfo::AddAkick().
| void NickCore::ClearAccess | ( | ) |
Clears the entire nick's access list
Deletes all the memory allocated in the access list vector and then clears the vector.
Definition at line 197 of file nickcore.cpp.
References access, FOREACH_MOD, and I_OnNickClearAccess.
Referenced by ~NickCore().
| void NickCore::ClearCert | ( | ) |
Clears the entire nick's cert list
Deletes all the memory allocated in the certificate list vector and then clears the vector.
Definition at line 253 of file nickcore.cpp.
References cert, FOREACH_MOD, and I_OnNickClearCert.
| void NickCore::EraseAccess | ( | const Anope::string & | entry | ) |
Erase an entry from the nick's access list
| entry | The nick!ident entry to remove |
Removes the specified access list entry from the access list.
Definition at line 186 of file nickcore.cpp.
References access, FOREACH_MOD, and I_OnNickEraseAccess.
Referenced by CommandNSAccess::DoDel().
| void NickCore::EraseCert | ( | const Anope::string & | entry | ) |
Erase a fingerprint from the nick's certificate list
| entry | The fingerprint to remove |
Removes the specified fingerprint from the cert list.
Definition at line 242 of file nickcore.cpp.
References cert, FOREACH_MOD, and I_OnNickEraseCert.
Referenced by CommandNSCert::DoDel().
| NickCore * NickCore::Find | ( | const Anope::string & | nick | ) | [static] |
Finds an account
| nick | The account name to find |
Definition at line 278 of file nickcore.cpp.
References NickCoreList.
Referenced by LoadChannels(), LoadNickAlias(), LoadNicks(), OnDatabaseReadMetadata(), ChanServCore::OnDelCore(), ReadDatabase(), IRCDMessageEncap::Run(), IRCDMessageMetadata::Run(), ChannelInfo::Unserialize(), AutoKick::Unserialize(), NSMiscData::Unserialize(), and AJoinEntry::Unserialize().
| bool NickCore::FindAccess | ( | const Anope::string & | entry | ) |
Find an entry in the nick's access list
| entry | The nick!ident entry to search for |
Search for an entry within the access list.
Definition at line 177 of file nickcore.cpp.
References access.
Referenced by CommandNSAccess::DoAdd(), and CommandNSAccess::DoDel().
| bool NickCore::FindCert | ( | const Anope::string & | entry | ) | const |
Find an entry in the nick's cert list
| entry | The fingerprint to search for |
Search for an fingerprint within the cert list.
Definition at line 233 of file nickcore.cpp.
References cert.
Referenced by CommandNSCert::DoAdd(), and CommandNSCert::DoDel().
| Anope::string NickCore::GetAccess | ( | unsigned | entry | ) | const |
Get an entry from the nick's access list by index
| entry | Index in the access list vector to retrieve |
Retrieves an entry from the access list corresponding to the given index.
Definition at line 170 of file nickcore.cpp.
References access.
Referenced by CommandNSAccess::DoList(), and IsOnAccess().
| Anope::string NickCore::GetCert | ( | unsigned | entry | ) | const |
Get an entry from the nick's cert list by index
| entry | Index in the certificaate list vector to retrieve |
Retrieves an entry from the certificate list corresponding to the given index.
Definition at line 226 of file nickcore.cpp.
References cert.
Referenced by CommandNSCert::DoList(), and CommandNSCert::DoServAdminList().
| void NickCore::GetChannelReferences | ( | std::deque< ChannelInfo * > & | queue | ) |
Definition at line 271 of file nickcore.cpp.
References chanaccess.
Referenced by CommandNSAList::Execute().
| bool NickCore::IsOnAccess | ( | const User * | u | ) | const |
Is the given user on this accounts access list?
| u | The user |
Definition at line 203 of file nickcore.cpp.
References access, Anope::string::empty(), GetAccess(), User::GetCloakedHost(), User::GetIdent(), User::host, Anope::Match(), and User::vhost.
| bool NickCore::IsServicesOper | ( | ) | const [virtual] |
Checks whether this account is a services oper or not.
Definition at line 159 of file nickcore.cpp.
References o.
Referenced by CommandNSSASetPassword::Execute(), CommandMSStaff::Execute(), ChanServCore::OnDelCore(), and CommandNSSetEmail::Run().
| void NickCore::RemoveChannelReference | ( | ChannelInfo * | ci | ) |
Definition at line 264 of file nickcore.cpp.
References chanaccess.
| void NickCore::Serialize | ( | Serialize::Data & | data | ) | const |
Definition at line 71 of file nickcore.cpp.
References access, cert, display, email, Extensible::ExtensibleSerialize(), greet, MemoInfo::ignores, language, MemoInfo::memomax, memos, and pass.
| void NickCore::SetDisplay | ( | const NickAlias * | na | ) |
Changes the display for this account
| na | The new display, must be grouped to this account. |
Definition at line 144 of file nickcore.cpp.
References display, FOREACH_MOD, I_OnChangeCoreDisplay, NickAlias::nc, NickAlias::nick, and NickCoreList.
Referenced by CommandNSUngroup::Execute().
| Serializable * NickCore::Unserialize | ( | Serializable * | obj, | |
| Serialize::Data & | data | |||
| ) | [static] |
Definition at line 88 of file nickcore.cpp.
References anope_dynamic_static_cast(), sepstream::GetToken(), and NickCore().
Referenced by Serialize::RegisterTypes().
| std::vector<Anope::string> NickCore::access |
Definition at line 164 of file account.h.
Referenced by AddAccess(), ClearAccess(), CommandNSAccess::DoAdd(), CommandNSAccess::DoList(), EraseAccess(), FindAccess(), GetAccess(), IsOnAccess(), LoadNicks(), DBPlain::OnSaveDatabase(), and Serialize().
| Serialize::Checker<std::vector<NickAlias *> > NickCore::aliases |
Definition at line 172 of file account.h.
Referenced by CommandNSSuspend::Execute(), CommandNSGList::Execute(), CommandNSUngroup::Execute(), CommandHSDelAll::Execute(), ChanAccess::Matches(), NickAlias::NickAlias(), MyMemoServService::Send(), and NickAlias::Unserialize().
| std::vector<Anope::string> NickCore::cert |
Definition at line 166 of file account.h.
Referenced by AddCert(), ClearCert(), CommandNSCert::DoAdd(), CommandNSCert::DoList(), CommandNSCert::DoServAdminList(), EraseCert(), FindCert(), GetCert(), DBPlain::OnSaveDatabase(), and Serialize().
Serialize::Checker<std::map<ChannelInfo *, int> > NickCore::chanaccess [private] |
Definition at line 151 of file account.h.
Referenced by AddChannelReference(), GetChannelReferences(), RemoveChannelReference(), and ~NickCore().
| uint16_t NickCore::channelcount |
Definition at line 180 of file account.h.
Referenced by CommandCSSetFounder::Execute(), CommandCSRegister::Execute(), NickCore(), and ChanServCore::OnDelCore().
Definition at line 154 of file account.h.
Referenced by Log::BuildPrefix(), CommandNSAJoin::DoAdd(), CommandNSAccess::DoAdd(), CommandNSAJoin::DoDel(), CommandNSAccess::DoDel(), XOPBase::DoDel(), CommandNSAJoin::DoList(), CommandNSAccess::DoList(), CommandNSCert::DoServAdminList(), MyXMLRPCEvent::DoUser(), CommandNSStatus::Execute(), CommandNSSASetPassword::Execute(), CommandNSGList::Execute(), CommandNSUngroup::Execute(), CommandNSGetEMail::Execute(), CommandNSAList::Execute(), CommandNSAccess::Execute(), CommandMSStaff::Execute(), CommandMSSendAll::Execute(), CommandHSDelAll::Execute(), CommandCSSetSuccessor::Execute(), CommandCSSetFounder::Execute(), CommandCSRegister::Execute(), CommandCSInfo::Execute(), CommandCSDrop::Execute(), MChanstats::GetDisplay(), MemoInfo::HasIgnore(), LoadNickCore(), LoadNicks(), NickCore(), ChanServCore::OnDelCore(), WebCPanel::ChanServ::Set::OnRequest(), IdentifyInterface::OnResult(), OnIdentifyInterface::OnResult(), DBPlain::OnSaveDatabase(), NSRecoverRequest::OnSuccess(), NSIdentifyRequest::OnSuccess(), rsend_notify(), IRCDMessageMetadata::Run(), CommandNSSetMisc::Run(), CommandNSSetSecure::Run(), CommandNSSetPrivate::Run(), CommandNSSetMessage::Run(), CommandNSSetKill::Run(), CommandNSSetHide::Run(), CommandNSSetGreet::Run(), CommandNSSetEmail::Run(), CommandNSSetAutoOp::Run(), Mail::Send(), UnrealIRCdProto::SendLogin(), HybridProto::SendLogin(), SendMemoMail(), Serialize(), SetDisplay(), ExpireCallback::Tick(), MyOper::Unserialize(), and ~NickCore().
Definition at line 157 of file account.h.
Referenced by NSMaxEmail::CountEmail(), CommandMSSet::DoNotify(), CommandNSRegister::Execute(), CommandNSUngroup::Execute(), CommandNSGetEMail::Execute(), LoadNicks(), OnDatabaseReadMetadata(), NSSet::OnPreCommand(), OnIdentifyInterface::OnResult(), DBPlain::OnSaveDatabase(), CommandNSSetEmail::Run(), Mail::Send(), CommandNSSetEmail::SendConfirmMail(), and Serialize().
Definition at line 159 of file account.h.
Referenced by CommandNSUngroup::Execute(), LoadNicks(), OnDatabaseReadMetadata(), DBPlain::OnSaveDatabase(), CommandNSSetGreet::Run(), and Serialize().
Definition at line 161 of file account.h.
Referenced by CommandNSUngroup::Execute(), LoadNicks(), NickCore(), OnDatabaseReadMetadata(), DBPlain::OnSaveDatabase(), CommandNSSetLanguage::Run(), Serialize(), and Language::Translate().
| time_t NickCore::lastmail |
Definition at line 182 of file account.h.
Referenced by NickCore(), and Mail::Send().
Definition at line 167 of file account.h.
Referenced by MyMemoServService::Check(), CommandMSInfo::Execute(), LoadNicks(), NickCore(), OnDatabaseReadMetadata(), DBPlain::OnSaveDatabase(), Serialize(), and ~NickCore().
Definition at line 175 of file account.h.
Referenced by MyXMLRPCEvent::DoUser(), CommandOSOper::Execute(), InitOpers(), IsServicesOper(), NickAlias::NickAlias(), NickCore(), IdentifyInterface::OnResult(), MyOper::Unserialize(), and OSOper::~OSOper().
Definition at line 156 of file account.h.
Referenced by CommandNSSASetPassword::Execute(), CommandNSRegister::Execute(), CommandNSUngroup::Execute(), LoadNickCore(), LoadNicks(), ESHA256::OnCheckAuthentication(), ESHA1::OnCheckAuthentication(), EOld::OnCheckAuthentication(), ENone::OnCheckAuthentication(), EMD5::OnCheckAuthentication(), DBPlain::OnSaveDatabase(), and Serialize().
| std::list<User *> NickCore::users |
Definition at line 184 of file account.h.
Referenced by CommandOSOper::Execute(), User::Login(), and ~NickCore().
1.7.1