]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_rehash.cpp
Fake lag on nick change, thanks pLaYa
[user/henk/code/inspircd.git] / src / commands / cmd_rehash.cpp
index 2246c2f46bdb8041deef06cca998cb4aca15916e..83b055650f15107ad0dabb17a4375e4985ad2b68 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #include "inspircd.h"
+#include "xline.h"
 #include "commands/cmd_rehash.h"
 
 
@@ -38,7 +39,10 @@ CmdResult CommandRehash::Handle (const char** parameters, int pcnt, User *user)
                        user->WriteServ("*** NOTICE %s :ERROR: Could not open logfile %s: %s", user->nick, ServerInstance->Config->logpath.c_str(), strerror(errno));
                ServerInstance->RehashUsersAndChans();
                FOREACH_MOD(I_OnGarbageCollect, OnGarbageCollect());
-               ServerInstance->Config->Read(false,user);
+               /*ServerInstance->Config->Read(false,user);*/
+               // Get XLine to do it's thing.
+               ServerInstance->XLines->CheckELines();
+               ServerInstance->XLines->ApplyLines();
                ServerInstance->Res->Rehash();
                ServerInstance->ResetMaxBans();
        }