diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 11:06:40 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 11:06:40 +0000 |
commit | 312d49abb008dccf9871b663decaa1bacf18c20a (patch) | |
tree | 5160e2aef34cfdfffa5d22eefc02c6921fc30ad3 /src/modules.cpp | |
parent | fe66a14a06c5542a8b127e2f1e0a51e4dc2946dc (diff) |
Move all of the xline stuff into class XLineManager, make an instance of it in class InspIRCd and use it
(eliminates another extern)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4878 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index f04745008..ed2d5a2fd 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -472,56 +472,56 @@ bool InspIRCd::PseudoToUser(userrec* alive, userrec* zombie, const std::string & void InspIRCd::AddGLine(long duration, const std::string &source, const std::string &reason, const std::string &hostmask) { - add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); - apply_lines(APPLY_GLINES); + XLines->add_gline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); + XLines->apply_lines(APPLY_GLINES); } void InspIRCd::AddQLine(long duration, const std::string &source, const std::string &reason, const std::string &nickname) { - add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); - apply_lines(APPLY_QLINES); + XLines->add_qline(duration, source.c_str(), reason.c_str(), nickname.c_str()); + XLines->apply_lines(APPLY_QLINES); } void InspIRCd::AddZLine(long duration, const std::string &source, const std::string &reason, const std::string &ipaddr) { - add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); - apply_lines(APPLY_ZLINES); + XLines->add_zline(duration, source.c_str(), reason.c_str(), ipaddr.c_str()); + XLines->apply_lines(APPLY_ZLINES); } void InspIRCd::AddKLine(long duration, const std::string &source, const std::string &reason, const std::string &hostmask) { - add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); - apply_lines(APPLY_KLINES); + XLines->add_kline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); + XLines->apply_lines(APPLY_KLINES); } void InspIRCd::AddELine(long duration, const std::string &source, const std::string &reason, const std::string &hostmask) { - add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); + XLines->add_eline(duration, source.c_str(), reason.c_str(), hostmask.c_str()); } bool InspIRCd::DelGLine(const std::string &hostmask) { - return del_gline(hostmask.c_str()); + return XLines->del_gline(hostmask.c_str()); } bool InspIRCd::DelQLine(const std::string &nickname) { - return del_qline(nickname.c_str()); + return XLines->del_qline(nickname.c_str()); } bool InspIRCd::DelZLine(const std::string &ipaddr) { - return del_zline(ipaddr.c_str()); + return XLines->del_zline(ipaddr.c_str()); } bool InspIRCd::DelKLine(const std::string &hostmask) { - return del_kline(hostmask.c_str()); + return XLines->del_kline(hostmask.c_str()); } bool InspIRCd::DelELine(const std::string &hostmask) { - return del_eline(hostmask.c_str()); + return XLines->del_eline(hostmask.c_str()); } long InspIRCd::CalcDuration(const std::string &delta) |