|
|||
|
|||
|


Public Member Functions | |
| ModuleTimedBans (InspIRCd *Me) | |
| virtual | ~ModuleTimedBans () |
| virtual int | OnDelBan (User *source, Channel *chan, const std::string &banmask) |
| Called whenever a ban is removed from a channel's list. | |
| virtual void | OnBackgroundTimer (time_t curtime) |
| Called once every five seconds for background processing. | |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
Private Attributes | |
| CommandTban * | mycommand |
Definition at line 109 of file m_timedbans.cpp.
|
|
Definition at line 113 of file m_timedbans.cpp. References InspIRCd::AddCommand(), ModuleManager::Attach(), I_OnBackgroundTimer, I_OnDelBan, InspIRCd::Modules, mycommand, Module::ServerInstance, and TimedBanList. |
|
|
Definition at line 124 of file m_timedbans.cpp. References TimedBanList. |
|
|
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 187 of file m_timedbans.cpp. References API_VERSION, VF_COMMON, and VF_VENDOR. |
|
|
Called once every five seconds for background processing. This timer can be used to control timed features. Its period is not accurate enough to be used as a clock, but it is gauranteed to be called at least once in any five second period, directly from the main loop of the server.
Reimplemented from Module. Definition at line 146 of file m_timedbans.cpp. References ServerConfig::AllowHalfop, InspIRCd::Config, InspIRCd::FakeClient, InspIRCd::FindChan(), ModeParser::GetLastParse(), InspIRCd::Modes, Channel::name, InspIRCd::PI, InspIRCd::SendMode(), ProtocolInterface::SendModeStr(), Module::ServerInstance, TimedBanList, and Channel::WriteAllExcept(). |
|
||||||||||||||||
|
Called whenever a ban is removed from a channel's list. Return a non-zero value to 'eat' the mode change and prevent the ban from being removed.
Reimplemented from Module. Definition at line 129 of file m_timedbans.cpp. References Channel::name, and TimedBanList. |
|
|
Definition at line 111 of file m_timedbans.cpp. Referenced by ModuleTimedBans(). |