Inherits Module.

Public Member Functions | |
| DBPlain (const Anope::string &modname, const Anope::string &creator) | |
| ~DBPlain () | |
| void | BackupDatabase () |
| void | OnReload () anope_override |
| EventReturn | OnLoadDatabase () anope_override |
| EventReturn | OnSaveDatabase () anope_override |
Private Attributes | |
| int | LastDay |
| std::list< Anope::string > | Backups |
Definition at line 583 of file db_plain.cpp.
| DBPlain::DBPlain | ( | const Anope::string & | modname, | |
| const Anope::string & | creator | |||
| ) | [inline] |
Definition at line 590 of file db_plain.cpp.
References ModuleManager::Attach(), I_OnSaveDatabase, LastDay, OnReload(), and Module::SetAuthor().
| DBPlain::~DBPlain | ( | ) | [inline] |
Definition at line 602 of file db_plain.cpp.
| void DBPlain::BackupDatabase | ( | ) | [inline] |
Definition at line 606 of file db_plain.cpp.
References Backups, Anope::string::c_str(), Config, Anope::CurTime, Anope::IsFile(), ServerConfig::KeepBackups, LastDay, LOG_DEBUG, ServerConfig::NoBackupOkay, Anope::Quitting, and stringify().
Referenced by OnSaveDatabase().
| EventReturn DBPlain::OnLoadDatabase | ( | ) | [inline, virtual] |
Called when the databases are loaded
Reimplemented from Module.
Definition at line 653 of file db_plain.cpp.
References ModuleManager::Detach(), I_OnLoadDatabase, and ReadDatabase().
| void DBPlain::OnReload | ( | ) | [inline, virtual] |
Called when Services' configuration has been loaded.
Reimplemented from Module.
Definition at line 646 of file db_plain.cpp.
References Anope::DataDir, and ConfigReader::ReadValue().
Referenced by DBPlain().
| EventReturn DBPlain::OnSaveDatabase | ( | ) | [inline, virtual] |
Called when the databases are saved
Reimplemented from Module.
Definition at line 664 of file db_plain.cpp.
References NickCore::access, ChanAccess::AccessSerialize(), AutoKick::addtime, BackupDatabase(), ChannelInfo::bantype, ChannelInfo::bi, BotListByNick, BW_ANY, BW_END, BW_SINGLE, BW_START, XLine::by, Anope::string::c_str(), ChannelInfo::capsmin, ChannelInfo::capspercent, NickCore::cert, LogSetting::command_name, LogSetting::command_service, XLine::created, ModeLock::created, LogSetting::created, ChanAccess::created, BotInfo::created, LogSetting::creator, AutoKick::creator, ChanAccess::creator, db_buffer, ChannelInfo::desc, NickCore::display, NickCore::email, Anope::string::empty(), endl, Exception::expires, XLine::expires, LogSetting::extra, ModeManager::FindChannelModeByName(), ChannelInfo::floodlines, ChannelInfo::floodsecs, ChannelInfo::GetAccess(), ChannelInfo::GetAccessCount(), ChannelInfo::GetAkick(), ChannelInfo::GetAkickCount(), ChannelInfo::GetBadWord(), ChannelInfo::GetBadWordCount(), BotInfo::GetChannelCount(), XLineManager::GetCount(), XLineManager::GetEntry(), Extensible::GetExt(), Extensible::GetExtList(), ChannelInfo::GetFounder(), XLine::GetHost(), User::GetIdent(), ChannelInfo::GetLevel(), MemoInfo::GetMemo(), ChannelInfo::GetMLock(), PrivilegeManager::GetPrivileges(), ChannelInfo::GetSuccessor(), XLine::GetUser(), NickAlias::GetVhostCreated(), NickAlias::GetVhostCreator(), NickAlias::GetVhostHost(), NickAlias::GetVhostIdent(), NickCore::greet, Extensible::HasExt(), NickAlias::HasVhost(), User::host, MemoInfo::ignores, IRCD, NickCore::language, NickAlias::last_quit, NickAlias::last_realhost, NickAlias::last_realname, ChanAccess::last_seen, NickAlias::last_seen, ChannelInfo::last_topic, ChannelInfo::last_topic_setter, ChannelInfo::last_topic_time, ChannelInfo::last_used, NickAlias::last_usermask, Exception::limit, ChannelInfo::log_settings, Exception::mask, AutoKick::mask, ChanAccess::mask, MaxUserCount, MaxUserTime, MemoInfo::memomax, ChannelInfo::memos, MemoInfo::memos, NickCore::memos, LogSetting::method, Mode::name, ModeLock::name, Service::name, Privilege::name, ChannelInfo::name, AutoKick::nc, NickAlias::nc, User::nick, NickAlias::nick, NickAliasList, NickCoreList, ModeLock::param, NickCore::pass, ChanAccess::provider, User::realname, Exception::reason, XLine::reason, AutoKick::reason, Memo::receipt, RegisteredChannelList, ChannelInfo::repeattimes, Memo::sender, IRCDProto::SendGlobops(), LogSetting::service_name, session_service(), ModeLock::set, ModeLock::setter, Memo::text, Exception::time, Memo::time, ChannelInfo::time_registered, NickAlias::time_registered, ChannelInfo::ttb, XLineManager::Type(), BadWord::type, Memo::unread, Exception::who, BadWord::word, and XLineManager::XLineManagers.
std::list<Anope::string> DBPlain::Backups [private] |
Definition at line 588 of file db_plain.cpp.
Referenced by BackupDatabase().
int DBPlain::LastDay [private] |
Definition at line 586 of file db_plain.cpp.
Referenced by BackupDatabase(), and DBPlain().
1.7.1