From 0c3eeb1ae4888d0e761f852c0073ab57ad628d0b Mon Sep 17 00:00:00 2001 From: w00t Date: Wed, 31 Oct 2007 12:12:30 +0000 Subject: Clean up XLine conf stuff a little bit, move most of it to configreader. Also, check elines and call ApplyLines on both rehash and startup. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8425 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_rehash.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/commands/cmd_rehash.cpp') diff --git a/src/commands/cmd_rehash.cpp b/src/commands/cmd_rehash.cpp index 2246c2f46..5b1ab019c 100644 --- a/src/commands/cmd_rehash.cpp +++ b/src/commands/cmd_rehash.cpp @@ -12,6 +12,7 @@ */ #include "inspircd.h" +#include "xline.h" #include "commands/cmd_rehash.h" @@ -39,6 +40,9 @@ CmdResult CommandRehash::Handle (const char** parameters, int pcnt, User *user) ServerInstance->RehashUsersAndChans(); FOREACH_MOD(I_OnGarbageCollect, OnGarbageCollect()); ServerInstance->Config->Read(false,user); + // Get XLine to do it's thing. + ServerInstance->XLines->CheckELines(ServerInstance->XLines->lookup_lines['E']); + ServerInstance->XLines->ApplyLines(); ServerInstance->Res->Rehash(); ServerInstance->ResetMaxBans(); } -- cgit v1.2.3