aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules.cpp
diff options
context:
space:
mode:
authorGravatar special2006-07-08 20:01:45 +0000
committerGravatar special2006-07-08 20:01:45 +0000
commit4d77a64e86311fb4fb1f5d2023fe1973001a682a (patch)
tree4000c8dafc409a8e6bf045a37bc96857564c1d55 /src/modules.cpp
parentFix syntax example (diff)
Made Add*Line automatically apply the new line
git-svn-id: http://svn.inspircd.org/repository/branches/1_0_stable@4186 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r--src/modules.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 529946220..61dc752ff 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -754,21 +754,25 @@ bool Server::PseudoToUser(userrec* alive, userrec* zombie, const std::string &me
void Server::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);
}
void Server::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);
}
void Server::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);
}
void Server::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);
}
void Server::AddELine(long duration, const std::string &source, const std::string &reason, const std::string &hostmask)