summaryrefslogtreecommitdiff
path: root/src/cmd_zline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_zline.cpp')
-rw-r--r--src/cmd_zline.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd_zline.cpp b/src/cmd_zline.cpp
index 772bac84f..cdb296d16 100644
--- a/src/cmd_zline.cpp
+++ b/src/cmd_zline.cpp
@@ -35,17 +35,17 @@ void cmd_zline::Handle (const char** parameters, int pcnt, userrec *user)
user->WriteServ("NOTICE %s :*** You cannot include a username in a zline, a zline must ban only an IP mask",user->nick);
return;
}
- if (ServerInstance->ip_matches_everyone(parameters[0],user))
+ if (ServerInstance->IPMatchesEveryone(parameters[0],user))
return;
- ServerInstance->XLines->add_zline(ServerInstance->duration(parameters[1]),user->nick,parameters[2],parameters[0]);
- FOREACH_MOD(I_OnAddZLine,OnAddZLine(ServerInstance->duration(parameters[1]), user, parameters[2], parameters[0]));
- if (!ServerInstance->duration(parameters[1]))
+ ServerInstance->XLines->add_zline(ServerInstance->Duration(parameters[1]),user->nick,parameters[2],parameters[0]);
+ FOREACH_MOD(I_OnAddZLine,OnAddZLine(ServerInstance->Duration(parameters[1]), user, parameters[2], parameters[0]));
+ if (!ServerInstance->Duration(parameters[1]))
{
ServerInstance->WriteOpers("*** %s added permanent Z-line for %s.",user->nick,parameters[0]);
}
else
{
- ServerInstance->WriteOpers("*** %s added timed Z-line for %s, expires in %d seconds.",user->nick,parameters[0],ServerInstance->duration(parameters[1]));
+ ServerInstance->WriteOpers("*** %s added timed Z-line for %s, expires in %d seconds.",user->nick,parameters[0],ServerInstance->Duration(parameters[1]));
}
ServerInstance->XLines->apply_lines(APPLY_ZLINES);
}