aboutsummaryrefslogtreecommitdiff
path: root/src/commands/cmd_stats.cpp
Commit message (Expand)AuthorAgeFilesLines
* Move src/commands/cmd_*.cpp to src/coremods[/core_*]/Gravatar Attila Molnar2014-03-051-406/+0
* Remove out of date doc and fix typo in commands/cmd_*.cppGravatar Attila Molnar2014-03-041-6/+2
* Change all socketengine methods to be staticGravatar Attila Molnar2014-02-081-3/+3
* Move socketengine stats into a new classGravatar Attila Molnar2014-02-081-6/+9
* Omit the server name internally when building a /STATS reply and prepend it l...Gravatar Attila Molnar2014-01-251-51/+51
* Read uline state in spanningtree; remove ConfigReader::ulinesGravatar Attila Molnar2014-01-081-9/+0
* Introduce Server class•••- Replaces std::string server in User - Replaces InspIRCd::ULine() and SilentULine() Gravatar Attila Molnar2014-01-051-1/+1
* Store oper types and opers in separate containersGravatar attilamolnar2013-08-131-4/+1
* Use InspIRCd::Format instead of snprintf().Gravatar Peter Powell2013-06-061-13/+11
* Remove (non-functional) total_bytes counter from CommandGravatar attilamolnar2013-06-011-1/+1
* Allow spaces (and more) in oper types•••The spaces are converted to '_' characters in OPERTYPE for 2.0 servers Issue #533 suggested by @ankitkv Gravatar attilamolnar2013-05-161-1/+1
* Replace some C-isms with C++-isms.•••* 'const char*' to 'const std::string&'. * snprintf to std::string concatenation. * Replace duplicated OneOfMatches with InspIRCd::MatchMask. Gravatar Peter Powell2013-05-151-1/+1
* Replace IS_AWAY() and IS_OPER() macros with User::IsAway() and User::IsOper()Gravatar attilamolnar2013-04-101-1/+1
* Make cmd_whowas act like a module, remove special handlingGravatar attilamolnar2013-04-041-13/+0
* Move member variables from User to LocalUser•••- idle_lastmsg - dns_done - quitting_sendq - exempt - lastping Gravatar attilamolnar2013-04-011-1/+2
* cmd_stats List opers without iterating the whole userlistGravatar attilamolnar2013-04-011-5/+6
* Add a typedef for LocalUserListGravatar attilamolnar2012-11-291-2/+2
* Windows: In-depth cleanup (see details)•••-Fix x64 builds for Windows. Now all configurations compile. -Remove the non-working rebase stuff. -Remove the Windows fork hack and instead use FreeConsole() to emulate the behavior. This directly allows us to compile with ASLR, which is turned on now. -Remove the old IPC mechanism for the removed GUI. This is not needed anymore as the GUI wasn't ever supported on anything newer than 1.2 -Remove the WIN32/WINDOWS macros. _WIN32 is supported on all x86-based VC++ targets, so that's what we need. -Enable optimizations for release builds. -De-duplicate printf_c(), it was previously copy-pasted into colors.h for configure -Add the VC++ specific bad files in .gitignore -Disable PID writing on Windows. This is only making sense for *nix builds. -Replace the CPU usage retrieval with an algorithm analogous to the *nix behavior. Also supports separated now/total values. (Tested with a dummy busy loop - seems working) -Removed certain unused functions and variables -Remove stdint defines from the windows wrapper -Remove CRT debug alloc. This is a bad idea as it would define a macro to replace free which breaks builds. -Re-evaluated the warnings list, commented it. -Moved inspircd_config/_version to include/ to match *nix -Removed the creation of inspircd_se_config, as it isn't used at all. -Made non-git builds show as "r0" instead of "r" (thanks to @SaberUK for pointing this out) -Fixed up m_spanningtree's project paths. Now all configurations (debug/release x86/x64) have been tested and build properly. -Moved FindDNS out of the wrapper and matched its log behavior with *nix. (It's pointless having it in the wrapper after the recent slimming down) -Replaced random/srandom wrappers with a mechanism that tries to use Windows' Random API first is no SSL module is loaded. -Removed more old junk from support for compilers older than VC++ 2010 (we don't have project files for these, so compiling them would be hard anyways) -Removed the unused ClearConsole() -Removed unused includes from the wrapper. Also, do not include psapi.h here if we don't link psapi.lib. This should be done where appropriate. -Made inet_aton an inline function for increased performance -C4800, performance warning about bool forcing, resolved at all occurrences. -C4701, uninitialized variable 'cached', resolved at all occurrences. -dlerror() was migrated out of the wrapper for more thread safety (no global buffer being shared) and increased performance. -Removed the wrong CRT debug flags. This drains a lot of performance. -Removed the clock_gettime/gettimeofday wrappers -Replaced all TCHAR/ANSI mix-ups of functions with the correct respective function. -Added a block of C4355 for < VS2012 -Update project files for c870714 Gravatar ChrisTX2012-10-121-4/+30
* Fixed Windows buildGravatar Adam2012-07-171-0/+4
* Move STATS handler back to cmd_stats so it's hotpatchable againGravatar attilamolnar2012-07-131-1/+340
* cmd_stats Remove unused preprocessor stuff (it has been living in stats.cpp f...Gravatar attilamolnar2012-07-071-11/+0
* Remove leftover #ifdefs and #includes from cmd_*.cppGravatar attilamolnar2012-07-021-2/+0
* Replace copyright headers with headers granting specific authors copyrightGravatar Robby-2012-04-191-8/+16
* Remove overrides for ADMIN, STATS, TIME•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12302 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2010-01-191-13/+13
* ...because every now and again, i have to do a massive commit.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12248 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2010-01-111-1/+1
* Attempt to revert r11734•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11735 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-161-0/+68
* Merge commands and modules in source, since they are already merged in install•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11734 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-161-68/+0
* Fix incorrect min/max parameters on commands•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11722 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-141-1/+1
* Clean up Command constructor•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11707 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-131-1/+1
* Change cmd_*.so to use the Module object API•••Create Module* objects for each command, and load them like modules. This unifies the external API for modules. Library directory is now deprecated: all modules are located in a single module directory. Header files for each command are no longer needed; remove. This also fixes two potential segfaults in m_spanningtree. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11668 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-031-300/+20
* ModResult conversion: Change return type of all module functions•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11634 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-021-3/+3
* Remove misleading byte counts from stats z•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11610 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-09-021-5/+5
* Make rehash generate a new ServerInstance->Config object•••This makes it possible to cancel a pending rehash, and fixes possible threading issues with rehash and other events. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11424 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-07-011-6/+6
* Move list of open ports out of Config object•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11423 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar danieldg2009-07-011-4/+4
* send ERR_NEEDMOREPARAMS if an empty parameter is given to STATS ('STATS :'), ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11271 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar dz2009-03-291-1/+6
* Update all wiki links to point to the new wiki. This was done automatically w...•••for file in $(find -type f -and -not -path '*/.svn/*' -and -not -name '*.so') ; do sed -e 's#http://www.inspircd.org/wiki#http://wiki.inspircd.org#' -e 's#http://wiki.inspircd.org/index.php/#http://wiki.inspircd.org/#' -i $file ; done git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11223 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar psychon2009-03-151-1/+1
* Fix bug #764 (/stats i outputs numerics with uppercase I), reported by KingTa...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11190 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-03-091-1/+1
* Nuke trailing spaces•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11105 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar peavey2009-02-141-7/+7
* Update copyrights for 2009.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10932 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2009-01-021-1/+1
* Fix bug spotted by KingTarquin, if an empty string is given to /stats with "S...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10927 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-12-281-1/+2
* Rip flood/threshold out of config classes also.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10839 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-12-011-1/+1
* Correct this error message to confuse people less.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10784 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-11-011-1/+1
* Tie a number of /who settings to servers/auspex and users/auspex respectively.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10674 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-181-1/+1
* Tie /stats that aren't explicitly marked for users into servers/auspex.•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10672 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-10-181-1/+1
* 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 Gravatar peavey2008-08-291-3/+1
* properly coreexport the getcpu() function etc•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10184 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-08-201-0/+1
* We can finally have percent cpu in the stats z on windows now, same as it is ...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10181 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-08-201-0/+1
* These are not percentages•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10150 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-08-171-3/+3
* Fix bug #579, missing end of stats and snomask when module returns 1 from OnS...•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10067 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar brain2008-07-221-1/+6
* Back out the incomplete linebuffering stuff that shouldn't have been committed..•••git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9948 e03df62e-2008-0410-955e-edbf42e46eb7 Gravatar w00t2008-07-021-2/+2