diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-22 23:06:16 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-07-22 23:06:16 +0000 |
commit | bc0d7a138dd8c81d5507f5bff32a5db4b884d8e2 (patch) | |
tree | 409bd70eb4a9df1841e0fa26736de2dd79d97677 | |
parent | 62a971acc29bcee901ac343b257d31ecb87ecef7 (diff) |
Fix bug #579, missing end of stats and snomask when module returns 1 from OnStats, thanks jackmcbarn
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10067 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/commands/cmd_stats.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/commands/cmd_stats.cpp b/src/commands/cmd_stats.cpp index f9bb0d634..92be3b5fb 100644 --- a/src/commands/cmd_stats.cpp +++ b/src/commands/cmd_stats.cpp @@ -61,9 +61,14 @@ DllExport void DoStats(InspIRCd* ServerInstance, char statschar, User* user, str } int MOD_RESULT = 0; - FOREACH_RESULT(I_OnStats,OnStats(statschar,user,results)); + FOREACH_RESULT(I_OnStats,OnStats(statschar, user, results)); if (MOD_RESULT) + { + results.push_back(sn+" 219 "+user->nick+" "+statschar+" :End of /STATS report"); + ServerInstance->SNO->WriteToSnoMask('t',"%s '%c' requested by %s (%s@%s)", + (IS_LOCAL(user) ? "Stats" : "Remote stats"), statschar, user->nick.c_str(), user->ident.c_str(), user->host.c_str()); return; + } switch (statschar) { |