#include <modes.h>

Public Member Functions | |
| Entry (const Anope::string &mode, const Anope::string &host) | |
| const Anope::string | GetMask () const |
| bool | Matches (const User *u, bool full=false) const |
Data Fields | |
| unsigned short | cidr_len |
| Anope::string | nick |
| Anope::string | user |
| Anope::string | host |
| Anope::string | real |
Private Attributes | |
| Anope::string | name |
| Anope::string | mask |
Represents a mask set on a channel (b/e/I)
Definition at line 398 of file modes.h.
| Entry::Entry | ( | const Anope::string & | mode, | |
| const Anope::string & | host | |||
| ) |
Constructor
| mode | What mode this host is for, can be empty for unknown/no mode | |
| host | A full or poartial nick!ident/cidrreal name mask |
Definition at line 608 of file modes.cpp.
References cidr_len, Anope::string::clear(), Anope::string::find(), Anope::string::find_first_not_of(), Anope::string::find_last_of(), host, LOG_DEBUG, mask, nick, Anope::string::npos, real, Anope::string::substr(), and user.
| const Anope::string Entry::GetMask | ( | ) | const |
Get the banned mask for this entry
Definition at line 687 of file modes.cpp.
References mask.
Referenced by BotInfo::Join(), and Channel::Unban().
| bool Entry::Matches | ( | const User * | u, | |
| bool | full = false | |||
| ) | const |
Check if this entry matches a user
| u | The user | |
| full | True to match against a users real host and IP |
Definition at line 692 of file modes.cpp.
References anope_dynamic_static_cast(), cidr_len, Anope::string::empty(), ModeManager::FindChannelModeByName(), User::GetCloakedHost(), User::GetDisplayedHost(), User::GetIdent(), User::GetVIdent(), host, User::host, User::ip, IRCD, IRCDProto::IsExtbanValid(), Anope::Match(), ChannelModeList::Matches(), MODE_LIST, name, User::nick, nick, real, User::realname, Mode::type, and user.
Referenced by CommandCSAKick::DoAdd(), CommandCSStatus::Execute(), BotInfo::Join(), UnrealExtBan::Matches(), InspIRCdExtBan::Matches(), Channel::MatchesList(), BotServCore::OnChannelModeSet(), and Channel::Unban().
| unsigned short Entry::cidr_len |
Definition at line 404 of file modes.h.
Referenced by CommandCSAKick::DoAdd(), Entry(), and Matches().
Anope::string Entry::mask [private] |
Anope::string Entry::name [private] |
Definition at line 404 of file modes.h.
Referenced by CommandCSAKick::DoAdd(), Entry(), and Matches().
Definition at line 404 of file modes.h.
Referenced by CommandCSAKick::DoAdd(), Entry(), and Matches().
Definition at line 404 of file modes.h.
Referenced by CommandCSAKick::DoAdd(), Entry(), and Matches().
1.7.1