#include <xline.h>
◆ ZLine()
ZLine::ZLine |
( |
time_t |
s_time, |
|
|
long |
d, |
|
|
std::string |
src, |
|
|
std::string |
re, |
|
|
std::string |
ip |
|
) |
| |
|
inline |
Create a Z-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 |
ip | IP to match |
◆ ~ZLine()
◆ Apply()
void ZLine::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 char * ZLine::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 seperately but will still return [email protected] for its Displayable() method)
Implements XLine.
◆ DisplayExpiry()
void ZLine::DisplayExpiry |
( |
| ) |
|
|
virtual |
Called when the expiry message is to be displayed for the line. Usually a line in the form 'expiring Xline blah, set by...' see the DisplayExpiry methods of GLine, ELine etc.
Implements XLine.
◆ Matches() [1/2]
bool ZLine::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 ZLine::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.
◆ ipaddr
std::string ZLine::ipaddr |
The documentation for this class was generated from the following files: