Anope IRC Services  Version 2.0
Public Member Functions | Data Fields | Private Attributes
Entry Class Reference

#include <modes.h>

Collaboration diagram for Entry:
Collaboration graph
[legend]

Public Member Functions

 Entry (const Anope::string &mode, const Anope::string &host)
 
const Anope::string GetMask () const
 
const Anope::string GetNUHMask () const
 
bool Matches (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
 

Detailed Description

Represents a mask set on a channel (b/e/I)

Definition at line 388 of file modes.h.

Constructor & Destructor Documentation

Entry::Entry ( const Anope::string mode,
const Anope::string host 
)

Constructor

Parameters
modeWhat mode this host is for, can be empty for unknown/no mode
hostA full or poartial nick!ident/cidrreal name mask

Definition at line 739 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, nick, Anope::string::npos, real, Anope::string::substr(), user, and sockaddrs::valid().

Member Function Documentation

const Anope::string Entry::GetMask ( ) const

Get the banned mask for this entry

Returns
The mask

Definition at line 817 of file modes.cpp.

References mask.

Referenced by BotServCore::OnJoinChannel(), and Channel::Unban().

const Anope::string Entry::GetNUHMask ( ) const

Definition at line 822 of file modes.cpp.

References Anope::string::empty(), host, nick, and user.

Referenced by IRCDProto::NormalizeMask().

bool Entry::Matches ( User u,
bool  full = false 
) const

Field Documentation

unsigned short Entry::cidr_len

Definition at line 393 of file modes.h.

Referenced by Entry(), and Matches().

Anope::string Entry::host

Definition at line 394 of file modes.h.

Referenced by CommandCSAKick::DoAdd(), Entry(), GetNUHMask(), and Matches().

Anope::string Entry::mask
private

Definition at line 391 of file modes.h.

Referenced by GetMask().

Anope::string Entry::name
private

Definition at line 390 of file modes.h.

Referenced by Matches().

Anope::string Entry::nick

Definition at line 394 of file modes.h.

Referenced by CommandCSAKick::DoAdd(), Entry(), GetNUHMask(), and Matches().

Anope::string Entry::real

Definition at line 394 of file modes.h.

Referenced by CommandCSAKick::DoAdd(), Entry(), and Matches().

Anope::string Entry::user

Definition at line 394 of file modes.h.

Referenced by CommandCSAKick::DoAdd(), Entry(), GetNUHMask(), and Matches().


The documentation for this class was generated from the following files: