diff options
Diffstat (limited to 'src/cmd_gline.cpp')
-rw-r--r-- | src/cmd_gline.cpp | 3 |
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 |