/* $ModDesc: Provides a spanning tree server link protocol */
#include "inspircd.h"
-#include "commands/cmd_whois.h"
-#include "commands/cmd_stats.h"
#include "socket.h"
#include "xline.h"
#include "../transport.h"
else
{
Module* srcmodule = thiscmd->creator;
+ Version ver = srcmodule->GetVersion();
- if (srcmodule && !(srcmodule->GetVersion().Flags & VF_COMMON)) {
+ if (!(ver.Flags & VF_COMMON))
+ {
ServerInstance->Logs->Log("m_spanningtree",ERROR,"Routed command %s from non-VF_COMMON module %s",
command.c_str(), srcmodule->ModuleSourceFile.c_str());
return;