|
|||
|
|||
|


Public Member Functions | |
| ModuleCBan (InspIRCd *Me) | |
| virtual | ~ModuleCBan () |
| virtual int | OnStats (char symbol, User *user, string_list &out) |
| Called on all /STATS commands This method is triggered for all /STATS use, including stats symbols handled by the core. | |
| virtual int | OnUserPreJoin (User *user, Channel *chan, const char *cname, std::string &privs, const std::string &keygiven) |
| Called whenever a user is about to join a channel, before any processing is done. | |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
Private Attributes | |
| CommandCBan * | mycommand |
| CBanFactory * | f |
Definition at line 152 of file m_cban.cpp.
|
|
Definition at line 158 of file m_cban.cpp. References InspIRCd::AddCommand(), ModuleManager::Attach(), f, I_OnDecodeMetaData, I_OnStats, I_OnSyncOtherMetaData, I_OnUserPreJoin, InspIRCd::Modules, mycommand, XLineManager::RegisterFactory(), Module::ServerInstance, and InspIRCd::XLines. |
|
|
Definition at line 169 of file m_cban.cpp. References XLineManager::DelAll(), f, Module::ServerInstance, XLineManager::UnregisterFactory(), and InspIRCd::XLines. |
|
|
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 199 of file m_cban.cpp. References API_VERSION, VF_COMMON, and VF_VENDOR. |
|
||||||||||||||||
|
Called on all /STATS commands This method is triggered for all /STATS use, including stats symbols handled by the core.
Reimplemented from Module. Definition at line 175 of file m_cban.cpp. References XLineManager::InvokeStats(), Module::ServerInstance, and InspIRCd::XLines. |
|
||||||||||||||||||||||||
|
Called whenever a user is about to join a channel, before any processing is done. Returning a value of 1 from this function stops the process immediately, causing no output to be sent to the user by the core. If you do this you must produce your own numerics, notices etc. This is useful for modules which may want to mimic +b, +k, +l etc. Returning -1 from this function forces the join to be allowed, bypassing restrictions such as banlists, invite, keys etc. IMPORTANT NOTE! If the user joins a NEW channel which does not exist yet, OnUserPreJoin will be called BEFORE the channel record is created. This will cause Channel* chan to be NULL. There is very little you can do in form of processing on the actual channel record at this point, however the channel NAME will still be passed in char* cname, so that you could for example implement a channel blacklist or whitelist, etc.
Reimplemented from Module. Definition at line 184 of file m_cban.cpp. References XLineManager::MatchesLine(), User::nick, XLine::reason, Module::ServerInstance, InspIRCd::SNO, User::WriteServ(), SnomaskManager::WriteToSnoMask(), and InspIRCd::XLines. |
|
|
Definition at line 155 of file m_cban.cpp. Referenced by ModuleCBan(), and ~ModuleCBan(). |
|
|
Definition at line 154 of file m_cban.cpp. Referenced by ModuleCBan(). |