#include "inspircd.h"
#include "socket.h"
#include "xline.h"
-#include "../transport.h"
#include "main.h"
#include "utils.h"
if (routing.type == ROUTE_TYPE_LOCALONLY)
{
- return;
+ Module* srcmodule = thiscmd->creator;
+ Version ver = srcmodule->GetVersion();
+
+ if ((ver.Flags & VF_CORE) && !IS_LOCAL(user))
+ routing = ROUTE_BROADCAST;
+ else
+ return;
+ if (IS_SERVER(user) && user != ServerInstance->FakeClient)
+ return;
}
else if (routing.type == ROUTE_TYPE_OPT_BCAST)
{