diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 15:14:39 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-11 15:14:39 +0000 |
commit | 7775a195d9c417e52eaaf912ec51d62bf0fd9a54 (patch) | |
tree | 7ebb40e491e247a94be9c463fb3f656cdc43a136 /src/cmd_eline.cpp | |
parent | 12e17fdf4755beca6def415f39d25722b9fe310f (diff) |
Move remaining functions:
operstrcmp* commands.cpp InspIRCd::operstrcmp()
duration* commands.cpp InspIRCd::duration()
host_matches_everyone* commands.cpp InspIRCd::host_matches_everyone()
ip_matches_everyone* commands.cpp InspIRCd::ip_matches_everyone()
nick_matches_everyone* commands.cpp InspIRCd::nick_matches_everyone()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4888 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_eline.cpp')
-rw-r--r-- | src/cmd_eline.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd_eline.cpp b/src/cmd_eline.cpp index 67874b5d7..e25fb37e3 100644 --- a/src/cmd_eline.cpp +++ b/src/cmd_eline.cpp @@ -30,19 +30,19 @@ void cmd_eline::Handle (const char** parameters, int pcnt, userrec *user) { if (pcnt >= 3) { - if (host_matches_everyone(parameters[0],user)) + if (ServerInstance->host_matches_everyone(parameters[0],user)) return; - ServerInstance->XLines->add_eline(duration(parameters[1]),user->nick,parameters[2],parameters[0]); - FOREACH_MOD(I_OnAddELine,OnAddELine(duration(parameters[1]), user, parameters[2], parameters[0])); + ServerInstance->XLines->add_eline(ServerInstance->duration(parameters[1]),user->nick,parameters[2],parameters[0]); + FOREACH_MOD(I_OnAddELine,OnAddELine(ServerInstance->duration(parameters[1]), user, parameters[2], parameters[0])); - if (!duration(parameters[1])) + if (!ServerInstance->duration(parameters[1])) { ServerInstance->WriteOpers("*** %s added permanent E-line for %s.",user->nick,parameters[0]); } else { - ServerInstance->WriteOpers("*** %s added timed E-line for %s, expires in %d seconds.",user->nick,parameters[0],duration(parameters[1])); + ServerInstance->WriteOpers("*** %s added timed E-line for %s, expires in %d seconds.",user->nick,parameters[0],ServerInstance->duration(parameters[1])); } } else |