|
|||
|
|||
|


Public Member Functions | |
| ModuleXLineDB (InspIRCd *Me) | |
| virtual | ~ModuleXLineDB () |
| void | OnAddLine (User *source, XLine *line) |
| Called whenever an xline is added by a local user. | |
| void | OnDelLine (User *source, XLine *line) |
| Called whenever an xline is deleted. | |
| void | OnExpireLine (XLine *line) |
| Called whenever an xline expires. | |
| void | RemoveLine (XLine *line) |
| bool | WriteDatabase () |
| bool | ReadDatabase () |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
Private Attributes | |
| std::vector< XLine * > | xlines |
| bool | reading_db |
Definition at line 19 of file m_xline_db.cpp.
|
|
Definition at line 25 of file m_xline_db.cpp. References ModuleManager::Attach(), I_OnAddLine, I_OnDelLine, I_OnExpireLine, InspIRCd::Modules, ReadDatabase(), reading_db, and Module::ServerInstance. |
|
|
Definition at line 35 of file m_xline_db.cpp. |
|
|
Returns the version number of a Module. The method should return a Version object with its version information assigned via Version::Version Reimplemented from Module. Definition at line 240 of file m_xline_db.cpp. References API_VERSION, and VF_VENDOR. |
|
||||||||||||
|
Called whenever an xline is added by a local user. This method is triggered after the line is added.
Reimplemented from Module. Definition at line 44 of file m_xline_db.cpp. References DEBUG, LogManager::Log(), InspIRCd::Logs, reading_db, Module::ServerInstance, WriteDatabase(), and xlines. |
|
||||||||||||
|
Called whenever an xline is deleted. This method is triggered after the line is deleted.
Reimplemented from Module. Definition at line 60 of file m_xline_db.cpp. References RemoveLine(). |
|
|
Called whenever an xline expires. This method is triggered after the line is deleted.
Reimplemented from Module. Definition at line 65 of file m_xline_db.cpp. References RemoveLine(). |
|
|
Definition at line 147 of file m_xline_db.cpp. References XLineManager::AddLine(), DEBUG, XLineFactory::Generate(), XLineManager::GetFactory(), irc::tokenstream::GetToken(), LogManager::Log(), InspIRCd::Logs, MAXBUF, MAXPARAMETERS, Module::ServerInstance, XLine::SetCreateTime(), InspIRCd::SNO, InspIRCd::Time(), SnomaskManager::WriteToSnoMask(), and InspIRCd::XLines. Referenced by ModuleXLineDB(). |
|
|
Definition at line 70 of file m_xline_db.cpp. References DEBUG, LogManager::Log(), InspIRCd::Logs, Module::ServerInstance, WriteDatabase(), and xlines. Referenced by OnDelLine(), and OnExpireLine(). |
|
|
Definition at line 85 of file m_xline_db.cpp. References InspIRCd::Config, DEBUG, XLine::Displayable(), XLine::duration, LogManager::Log(), InspIRCd::Logs, XLine::reason, Module::ServerInstance, ServerConfig::ServerName, XLine::set_time, InspIRCd::SNO, XLine::type, SnomaskManager::WriteToSnoMask(), and xlines. Referenced by OnAddLine(), and RemoveLine(). |
|
|
Definition at line 22 of file m_xline_db.cpp. Referenced by ModuleXLineDB(), and OnAddLine(). |
|
|
Definition at line 21 of file m_xline_db.cpp. Referenced by OnAddLine(), RemoveLine(), and WriteDatabase(). |