#include <xline.h>
Inherits Serializable.

Public Member Functions | |
| XLine (const Anope::string &mask, const Anope::string &reason="", const Anope::string &uid="") | |
| XLine (const Anope::string &mask, const Anope::string &by, const time_t expires, const Anope::string &reason, const Anope::string &uid="") | |
| ~XLine () | |
| Anope::string | GetNick () const |
| Anope::string | GetUser () const |
| Anope::string | GetHost () const |
| Anope::string | GetReal () const |
| Anope::string | GetReason () const |
| bool | HasNickOrReal () const |
| bool | IsRegex () const |
| void | Serialize (Serialize::Data &data) const anope_override |
Static Public Member Functions | |
| static Serializable * | Unserialize (Serializable *obj, Serialize::Data &data) |
Data Fields | |
| Anope::string | mask |
| Regex * | regex |
| Anope::string | by |
| time_t | created |
| time_t | expires |
| Anope::string | reason |
| XLineManager * | manager |
| Anope::string | id |
Private Member Functions | |
| void | InitRegex () |
Definition at line 17 of file xline.h.
| XLine::XLine | ( | const Anope::string & | mask, | |
| const Anope::string & | reason = "", |
|||
| const Anope::string & | uid = "" | |||
| ) |
Definition at line 47 of file xline.cpp.
References InitRegex(), manager, and regex.
Referenced by Unserialize().
| XLine::XLine | ( | const Anope::string & | mask, | |
| const Anope::string & | by, | |||
| const time_t | expires, | |||
| const Anope::string & | reason, | |||
| const Anope::string & | uid = "" | |||
| ) |
Definition at line 55 of file xline.cpp.
References InitRegex(), manager, and regex.
| Anope::string XLine::GetHost | ( | ) | const |
Definition at line 93 of file xline.cpp.
References Anope::string::find(), mask, Anope::string::npos, and Anope::string::substr().
Referenced by DBPlain::OnSaveDatabase().
| Anope::string XLine::GetNick | ( | ) | const |
Definition at line 68 of file xline.cpp.
References Anope::string::find(), mask, Anope::string::npos, and Anope::string::substr().
Referenced by HasNickOrReal().
| Anope::string XLine::GetReal | ( | ) | const |
Definition at line 108 of file xline.cpp.
References Anope::string::find(), mask, Anope::string::npos, and Anope::string::substr().
Referenced by HasNickOrReal().
| Anope::string XLine::GetReason | ( | ) | const |
| Anope::string XLine::GetUser | ( | ) | const |
Definition at line 78 of file xline.cpp.
References Anope::string::find(), mask, Anope::string::npos, and Anope::string::substr().
Referenced by DBPlain::OnSaveDatabase().
| bool XLine::HasNickOrReal | ( | ) | const |
Definition at line 128 of file xline.cpp.
References Anope::string::find_first_not_of(), GetNick(), GetReal(), and Anope::string::npos.
| void XLine::InitRegex | ( | ) | [private] |
Definition at line 26 of file xline.cpp.
References Config, Anope::string::empty(), CoreException::GetReason(), Anope::string::length(), LOG_DEBUG, mask, regex, ServerConfig::RegexEngine, and Anope::string::substr().
Referenced by XLine().
| bool XLine::IsRegex | ( | ) | const |
Definition at line 135 of file xline.cpp.
References Anope::string::empty(), Anope::string::length(), and mask.
| void XLine::Serialize | ( | Serialize::Data & | data | ) | const [virtual] |
| Serializable * XLine::Unserialize | ( | Serializable * | obj, | |
| Serialize::Data & | data | |||
| ) | [static] |
Definition at line 152 of file xline.cpp.
References anope_dynamic_static_cast(), by, created, XLineManager::DelXLine(), expires, id, manager, mask, reason, and XLine().
Referenced by Serialize::RegisterTypes().
Definition at line 23 of file xline.h.
Referenced by GetReason(), WebCPanel::OperServ::Akill::OnRequest(), DBPlain::OnSaveDatabase(), OSDefcon::OnUserConnect(), CommandOSSXLineBase::ProcessList(), CommandOSAKill::ProcessList(), UnrealIRCdProto::SendAkill(), InspIRCd12Proto::SendAkill(), InspIRCdProto::SendAkill(), HybridProto::SendAkill(), BahamutIRCdProto::SendAkill(), Serialize(), and Unserialize().
| time_t XLine::created |
Definition at line 24 of file xline.h.
Referenced by LoadOper(), LoadOperInfo(), WebCPanel::OperServ::Akill::OnRequest(), DBPlain::OnSaveDatabase(), CommandOSSXLineBase::ProcessList(), CommandOSAKill::ProcessList(), Serialize(), and Unserialize().
| time_t XLine::expires |
Definition at line 25 of file xline.h.
Referenced by XLineManager::CanAdd(), XLineManager::CheckAllXLines(), WebCPanel::OperServ::Akill::OnRequest(), DBPlain::OnSaveDatabase(), CommandOSSXLineBase::ProcessList(), CommandOSAKill::ProcessList(), UnrealIRCdProto::SendAkill(), InspIRCd12Proto::SendAkill(), InspIRCdProto::SendAkill(), HybridProto::SendAkill(), BahamutIRCdProto::SendAkill(), Serialize(), and Unserialize().
Reimplemented from Serializable.
Definition at line 28 of file xline.h.
Referenced by XLineManager::AddXLine(), XLineManager::Clear(), XLineManager::DelXLine(), CommandOSAKill::DoAdd(), CommandOSSQLine::OnAdd(), CommandOSSNLine::OnAdd(), CommandOSSXLineBase::ProcessList(), CommandOSAKill::ProcessList(), UnrealIRCdProto::SendAkill(), InspIRCd12Proto::SendAkill(), InspIRCdProto::SendAkill(), HybridProto::SendAkill(), BahamutIRCdProto::SendAkill(), Serialize(), and Unserialize().
Definition at line 27 of file xline.h.
Referenced by XLineManager::AddXLine(), UnrealIRCdProto::SendAkill(), InspIRCd12Proto::SendAkill(), InspIRCdProto::SendAkill(), HybridProto::SendAkill(), BahamutIRCdProto::SendAkill(), Serialize(), Unserialize(), and XLine().
Definition at line 21 of file xline.h.
Referenced by XLineManager::CanAdd(), CommandOSAKill::DoDel(), GetHost(), GetNick(), GetReal(), GetUser(), XLineManager::HasEntry(), InitRegex(), IsRegex(), CommandOSSQLine::OnAdd(), CommandOSSNLine::OnAdd(), WebCPanel::OperServ::Akill::OnRequest(), CommandOSSXLineBase::ProcessList(), CommandOSAKill::ProcessList(), UnrealIRCdProto::SendAkill(), InspIRCd12Proto::SendAkill(), InspIRCdProto::SendAkill(), HybridProto::SendAkill(), BahamutIRCdProto::SendAkill(), Serialize(), and Unserialize().
Definition at line 26 of file xline.h.
Referenced by XLineManager::CanAdd(), CommandOSAKill::DoAdd(), GetReason(), WebCPanel::OperServ::Akill::OnRequest(), DBPlain::OnSaveDatabase(), CommandOSSXLineBase::ProcessList(), CommandOSAKill::ProcessList(), UnrealIRCdProto::SendAkill(), InspIRCd12Proto::SendAkill(), InspIRCdProto::SendAkill(), HybridProto::SendAkill(), BahamutIRCdProto::SendAkill(), Serialize(), and Unserialize().
Definition at line 22 of file xline.h.
Referenced by InitRegex(), XLine(), and ~XLine().
1.7.1