|
|||
|
|||
|
Inheritance diagram for CloakUser:


Public Member Functions | |
| std::string | LastTwoDomainParts (const std::string &host) |
| This function takes a domain name string and returns just the last two domain parts, or the last domain part if only two are available. | |
| CloakUser (InspIRCd *Instance, Module *source, Module *Hash) | |
| ModeAction | OnModeChange (User *source, User *dest, Channel *channel, std::string ¶meter, bool adding, bool) |
| Called when a mode change for your mode occurs. | |
| std::string | Cloak4 (const char *ip) |
| std::string | Cloak6 (const char *ip) |
| void | DoRehash () |
Public Attributes | |
| std::string | prefix |
| Mode prefix, or 0. | |
| unsigned int | key1 |
| unsigned int | key2 |
| unsigned int | key3 |
| unsigned int | key4 |
| bool | ipalways |
| Module * | Sender |
| Module * | HashProvider |
| const char * | xtab [4] |
Definition at line 22 of file m_cloaking.cpp.
|
||||||||||||||||
|
Definition at line 66 of file m_cloaking.cpp. |
|
|
Definition at line 128 of file m_cloaking.cpp. References irc::sepstream::GetToken(), HashProvider, key1, key2, key3, key4, Sender, and xtab. Referenced by Cloak6(), and ModuleCloaking::OnUserConnect(). |
|
|
Definition at line 160 of file m_cloaking.cpp. References Cloak4(), HashProvider, key1, key2, key3, key4, Sender, and xtab. Referenced by ModuleCloaking::OnUserConnect(). |
|
|
Definition at line 199 of file m_cloaking.cpp. References Conf, InspIRCd::Config, ipalways, key1, key2, key3, key4, ServerConfig::Network, prefix, ConfigReader::ReadFlag(), ConfigReader::ReadInteger(), ConfigReader::ReadValue(), ModeHandler::ServerInstance, and xtab. Referenced by ModuleCloaking::OnRehash(). |
|
|
This function takes a domain name string and returns just the last two domain parts, or the last domain part if only two are available. Failing that it just returns what it was given. For example, if it is passed "svn.inspircd.org" it will return ".inspircd.org". If it is passed "brainbox.winbot.co.uk" it will return ".co.uk", and if it is passed "localhost.localdomain" it will return ".localdomain". This is used to ensure a significant part of the host is always cloaked (see Bug #216) Definition at line 44 of file m_cloaking.cpp. Referenced by ModuleCloaking::OnUserConnect(). |
|
||||||||||||||||||||||||||||
|
Called when a mode change for your mode occurs.
Reimplemented from ModeHandler. Definition at line 70 of file m_cloaking.cpp. References User::ChangeDisplayedHost(), Extensible::GetExt(), connection::host, User::IncreasePenalty(), IS_LOCAL, User::IsModeSet(), MODEACTION_ALLOW, MODEACTION_DENY, and User::SetMode(). |
|
|
Definition at line 32 of file m_cloaking.cpp. Referenced by Cloak4(), Cloak6(), and ModuleCloaking::OnUserConnect(). |
|
|
Definition at line 30 of file m_cloaking.cpp. Referenced by DoRehash(), and ModuleCloaking::OnUserConnect(). |
|
|
Definition at line 26 of file m_cloaking.cpp. Referenced by Cloak4(), Cloak6(), DoRehash(), and ModuleCloaking::OnUserConnect(). |
|
|
Definition at line 27 of file m_cloaking.cpp. Referenced by Cloak4(), Cloak6(), DoRehash(), and ModuleCloaking::OnUserConnect(). |
|
|
Definition at line 28 of file m_cloaking.cpp. Referenced by Cloak4(), Cloak6(), DoRehash(), and ModuleCloaking::OnUserConnect(). |
|
|
Definition at line 29 of file m_cloaking.cpp. Referenced by Cloak4(), Cloak6(), DoRehash(), and ModuleCloaking::OnUserConnect(). |
|
|
Mode prefix, or 0.
Reimplemented from ModeHandler. Definition at line 25 of file m_cloaking.cpp. Referenced by DoRehash(), and ModuleCloaking::OnUserConnect(). |
|
|
Definition at line 31 of file m_cloaking.cpp. |
|
|
Definition at line 33 of file m_cloaking.cpp. Referenced by Cloak4(), Cloak6(), DoRehash(), and ModuleCloaking::OnUserConnect(). |