summaryrefslogtreecommitdiff
path: root/src/xline.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-24 20:01:06 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-24 20:01:06 +0000
commit9927dccff26955e79f3c193e931afac019c35ce2 (patch)
tree5053182414206b6693e738d58dbca43c0f542170 /src/xline.cpp
parent800ebbf95d489010e3a99b4975c9b864d96cd0d2 (diff)
Q-lines fully working, can add and remove other types of ban (but not enforced yet)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@714 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/xline.cpp')
-rw-r--r--src/xline.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/xline.cpp b/src/xline.cpp
index 6ca005bad..400fac241 100644
--- a/src/xline.cpp
+++ b/src/xline.cpp
@@ -512,4 +512,37 @@ void apply_lines()
}
}
+void stats_k(userrec* user)
+{
+ for (std::vector<KLine>::iterator i = klines.begin(); i != klines.end(); i++)
+ {
+ WriteServ(user->fd,"216 %s :%s %d %d %s %s",user->nick,i->hostmask,i->set_time,i->duration,i->source,i->reason);
+ }
+}
+
+void stats_g(userrec* user)
+{
+ for (std::vector<GLine>::iterator i = glines.begin(); i != glines.end(); i++)
+ {
+ WriteServ(user->fd,"223 %s :%s %d %d %s %s",user->nick,i->hostmask,i->set_time,i->duration,i->source,i->reason);
+ }
+}
+
+void stats_q(userrec* user)
+{
+ for (std::vector<QLine>::iterator i = qlines.begin(); i != qlines.end(); i++)
+ {
+ WriteServ(user->fd,"217 %s :%s %d %d %s %s",user->nick,i->nick,i->set_time,i->duration,i->source,i->reason);
+ }
+}
+
+void stats_z(userrec* user)
+{
+ for (std::vector<ZLine>::iterator i = zlines.begin(); i != zlines.end(); i++)
+ {
+ WriteServ(user->fd,"223 %s :%s %d %d %s %s",user->nick,i->ipaddr,i->set_time,i->duration,i->source,i->reason);
+ }
+}
+
+