summaryrefslogtreecommitdiff
path: root/src/cmd_gline.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-09 00:08:16 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2006-03-09 00:08:16 +0000
commit7b0568e9d134e7aea9ea39f75b91ac36c487466b (patch)
tree28f1e7a65478c574bf69a1daf689edc1e75cc88b /src/cmd_gline.cpp
parente68c10bb71182fc190eda5b4a305dce97eaa1be2 (diff)
More cleanup, moved Om and myself to core team
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3567 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_gline.cpp')
-rw-r--r--src/cmd_gline.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd_gline.cpp b/src/cmd_gline.cpp
index b8a80cc38..5285383cc 100644
--- a/src/cmd_gline.cpp
+++ b/src/cmd_gline.cpp
@@ -52,8 +52,10 @@ void cmd_gline::Handle (char **parameters, int pcnt, userrec *user)
{
if (host_matches_everyone(parameters[0],user))
return;
+
add_gline(duration(parameters[1]),user->nick,parameters[2],parameters[0]);
FOREACH_MOD(I_OnAddGLine,OnAddGLine(duration(parameters[1]), user, parameters[2], parameters[0]));
+
if (!duration(parameters[1]))
{
WriteOpers("*** %s added permenant G-line for %s.",user->nick,parameters[0]);
@@ -62,6 +64,7 @@ void cmd_gline::Handle (char **parameters, int pcnt, userrec *user)
{
WriteOpers("*** %s added timed G-line for %s, expires in %d seconds.",user->nick,parameters[0],duration(parameters[1]));
}
+
apply_lines(APPLY_GLINES);
}
else