|
|||
|
|||
|


Public Member Functions | |
| ModuleBadChannelExtban (InspIRCd *Me) | |
| virtual | ~ModuleBadChannelExtban () |
| virtual Version | GetVersion () |
| Returns the version number of a Module. | |
| virtual int | OnUserPreJoin (User *user, Channel *c, const char *cname, std::string &privs, const std::string &key) |
| Called whenever a user is about to join a channel, before any processing is done. | |
| virtual void | On005Numeric (std::string &output) |
| Called when a 005 numeric is about to be output. | |
Definition at line 18 of file m_channelban.cpp.
|
|
Definition at line 22 of file m_channelban.cpp. References ModuleManager::Attach(), I_On005Numeric, I_OnUserPreJoin, InspIRCd::Modules, and Module::ServerInstance. |
|
|
Definition at line 28 of file m_channelban.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 32 of file m_channelban.cpp. References API_VERSION, and VF_VENDOR. |
|
|
Called when a 005 numeric is about to be output. The module should modify the 005 numeric if needed to indicate its features.
Reimplemented from Module. Definition at line 58 of file m_channelban.cpp. References InspIRCd::AddExtBanChar(), and Module::ServerInstance. |
|
||||||||||||||||||||||||
|
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 37 of file m_channelban.cpp. References User::chans, ERR_BANNEDFROMCHAN, IS_LOCAL, Channel::IsExtBanned(), Channel::name, User::nick, and User::WriteNumeric(). |