#include <xline.h>
|
| GLine (time_t s_time, unsigned long d, const std::string &src, const std::string &re, const std::string &ident, const std::string &host) |
|
| ~GLine () |
|
bool | Matches (User *u) CXX11_OVERRIDE |
|
bool | Matches (const std::string &str) CXX11_OVERRIDE |
|
void | Apply (User *u) CXX11_OVERRIDE |
|
const std::string & | Displayable () CXX11_OVERRIDE |
|
| XLine (time_t s_time, unsigned long d, const std::string &src, const std::string &re, const std::string &t) |
|
virtual | ~XLine () |
|
virtual void | SetCreateTime (time_t created) |
|
virtual void | Unset () |
|
virtual void | DisplayExpiry () |
|
virtual void | OnAdd () |
|
virtual bool | IsBurstable () |
|
virtual CullResult | cull () |
|
◆ GLine()
GLine::GLine |
( |
time_t |
s_time, |
|
|
unsigned long |
d, |
|
|
const std::string & |
src, |
|
|
const std::string & |
re, |
|
|
const std::string & |
ident, |
|
|
const std::string & |
host |
|
) |
| |
|
inline |
Create a G-line.
- Parameters
-
s_time | The set time |
d | The duration of the xline |
src | The sender of the xline |
re | The reason of the xline |
ident | Ident to match |
host | Host to match |
◆ ~GLine()
◆ Apply()
void GLine::Apply |
( |
User * |
u | ) |
|
|
virtual |
Apply a line against a user. The mechanics of what occurs when the line is applied are specific to the derived class.
- Parameters
-
u | The user to apply against |
Reimplemented from XLine.
◆ Displayable()
const std::string & GLine::Displayable |
( |
| ) |
|
|
virtual |
Returns the displayable form of the pattern for this xline, e.g. '*@foo' or 'baz'. This must always return the full pattern in a form which can be used to construct an entire derived xline, even if it is stored differently internally (e.g. GLine stores the ident and host parts separately but will still return [email protected] for its Displayable() method).
Implements XLine.
◆ Matches() [1/2]
bool GLine::Matches |
( |
const std::string & |
str | ) |
|
|
virtual |
Returns true whether or not the given string is covered by this line.
- Parameters
-
str | The string to match against. The details of what must be in this string and the mechanics of the match are defined by the derived class. |
- Returns
- True if there is a match
Implements XLine.
◆ Matches() [2/2]
bool GLine::Matches |
( |
User * |
u | ) |
|
|
virtual |
Returns true whether or not the given user is covered by this line.
- Parameters
-
u | The user to match against. The mechanics of the match are defined by the derived class. |
- Returns
- True if there is a match.
Implements XLine.
◆ hostmask
std::string GLine::hostmask |
Host mask (host part only)
◆ identmask
std::string GLine::identmask |
Ident mask (ident part only)
The documentation for this class was generated from the following files: