Fix extra End of /STATS on spanningtree override of stats c and n.

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10350 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
peavey 2008-08-29 20:19:31 +00:00
parent 3eb4ce6e93
commit 6e39923ee9
2 changed files with 1 additions and 4 deletions

View File

@ -88,11 +88,9 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, User* user, str
}
break;
/* These stats symbols must be handled by a linking module */
case 'n':
case 'c':
{
/* This stats symbol must be handled by a linking module */
}
break;
case 'i':

View File

@ -66,7 +66,6 @@ int ModuleSpanningTree::OnStats(char statschar, User* user, string_list &results
if (statschar == 'c')
results.push_back(std::string(ServerInstance->Config->ServerName)+" 244 "+user->nick+" H * * "+Utils->LinkBlocks[i].Name.c_str());
}
results.push_back(std::string(ServerInstance->Config->ServerName)+" 219 "+user->nick+" "+statschar+" :End of /STATS report");
ServerInstance->SNO->WriteToSnoMask('t',"%s '%c' requested by %s (%s@%s)", (!strcmp(user->server,ServerInstance->Config->ServerName) ? "Stats" : "Remote stats"), statschar, user->nick.c_str(), user->ident.c_str(), user->host.c_str());
return 1;
}