summaryrefslogtreecommitdiff
path: root/src/cmd_eline.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 11:06:40 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-11 11:06:40 +0000
commit312d49abb008dccf9871b663decaa1bacf18c20a (patch)
tree5160e2aef34cfdfffa5d22eefc02c6921fc30ad3 /src/cmd_eline.cpp
parentfe66a14a06c5542a8b127e2f1e0a51e4dc2946dc (diff)
Move all of the xline stuff into class XLineManager, make an instance of it in class InspIRCd and use it
(eliminates another extern) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4878 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_eline.cpp')
-rw-r--r--src/cmd_eline.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_eline.cpp b/src/cmd_eline.cpp
index 011cb6851..67874b5d7 100644
--- a/src/cmd_eline.cpp
+++ b/src/cmd_eline.cpp
@@ -33,7 +33,7 @@ void cmd_eline::Handle (const char** parameters, int pcnt, userrec *user)
if (host_matches_everyone(parameters[0],user))
return;
- add_eline(duration(parameters[1]),user->nick,parameters[2],parameters[0]);
+ 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]));
if (!duration(parameters[1]))
@@ -47,7 +47,7 @@ void cmd_eline::Handle (const char** parameters, int pcnt, userrec *user)
}
else
{
- if (del_eline(parameters[0]))
+ if (ServerInstance->XLines->del_eline(parameters[0]))
{
FOREACH_MOD(I_OnDelELine,OnDelELine(user, parameters[0]));
ServerInstance->WriteOpers("*** %s Removed E-line on %s.",user->nick,parameters[0]);