]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_stats.cpp
Add Channel::SetTopic(User *, std::string &) to set topic on a channel. Use it in...
[user/henk/code/inspircd.git] / src / commands / cmd_stats.cpp
index f9bb0d634fe34553954b9c633706ede17157d092..92be3b5fb41e66ee5fb39c8ac8d4a1444e4631ce 100644 (file)
@@ -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)
        {