|
|||
|
|||
|
#include <xline.h>
Inheritance diagram for ZLine:


Public Member Functions | |
| ZLine (InspIRCd *Instance, time_t s_time, long d, const char *src, const char *re, const char *ip) | |
| Create a Z-Line. | |
| ~ZLine () | |
| Destructor. | |
| virtual bool | Matches (User *u) |
| Returns true whether or not the given user is covered by this line. | |
| virtual bool | Matches (const std::string &str) |
| Returns true whether or not the given string is covered by this line. | |
| virtual void | Apply (User *u) |
| Apply a line against a user. | |
| virtual void | DisplayExpiry () |
| Called when the expiry message is to be displayed for the line. | |
| virtual const char * | Displayable () |
| Returns the displayable form of the pattern for this xline, e.g. | |
Public Attributes | |
| char * | ipaddr |
| IP mask (no ident part). | |
Definition at line 301 of file xline.h.
|
||||||||||||||||||||||||||||
|
Create a Z-Line.
|
|
|
Destructor.
|
|
|
Apply a line against a user. The mechanics of what occurs when the line is applied are specific to the derived class.
Reimplemented from XLine. Definition at line 536 of file xline.cpp. References XLine::DefaultApply(). |
|
|
Returns the displayable form of the pattern for this xline, e.g. '*' 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 ident for its Displayable() method) Implements XLine. Definition at line 639 of file xline.cpp. References ipaddr. |
|
|
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. Definition at line 609 of file xline.cpp. References XLine::ServerInstance, InspIRCd::SNO, and SnomaskManager::WriteToSnoMask(). |
|
|
Returns true whether or not the given string is covered by this line.
Implements XLine. Definition at line 557 of file xline.cpp. References InspIRCd::MatchCIDR(). |
|
|
Returns true whether or not the given user is covered by this line.
Implements XLine. Definition at line 525 of file xline.cpp. References User::exempt, User::GetIPString(), ipaddr, and InspIRCd::MatchCIDR(). |
|
|
IP mask (no ident part).
Definition at line 335 of file xline.h. Referenced by Displayable(), and Matches(). |