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
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

Detailed Description

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

Definition at line 398 of file modes.h.


Constructor & Destructor Documentation

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

Constructor

Parameters:
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.


Member Function Documentation

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

Get the banned mask for this entry

Returns:
The mask

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

Field Documentation

unsigned short Entry::cidr_len

Definition at line 403 of file modes.h.

Referenced by Entry(), and Matches().

Definition at line 404 of file modes.h.

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

Definition at line 401 of file modes.h.

Referenced by Entry(), and GetMask().

Definition at line 400 of file modes.h.

Referenced by 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().

Definition at line 404 of file modes.h.

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


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