mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
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:
parent
3eb4ce6e93
commit
6e39923ee9
@ -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':
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user