mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 02:59:01 -04:00
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
46 lines
1.4 KiB
C++
46 lines
1.4 KiB
C++
/* +------------------------------------+
|
|
* | Inspire Internet Relay Chat Daemon |
|
|
* +------------------------------------+
|
|
*
|
|
* InspIRCd: (C) 2002-2009 InspIRCd Development Team
|
|
* See: http://wiki.inspircd.org/Credits
|
|
*
|
|
* This program is free but copyrighted software; see
|
|
* the file COPYING for details.
|
|
*
|
|
* ---------------------------------------------------
|
|
*/
|
|
|
|
#ifndef __CMD_STATS_H__
|
|
#define __CMD_STATS_H__
|
|
|
|
// include the common header files
|
|
|
|
#include "inspircd.h"
|
|
#include "users.h"
|
|
#include "channels.h"
|
|
|
|
DllExport void DoStats(InspIRCd* Instance, char statschar, User* user, string_list &results);
|
|
|
|
/** Handle /STATS. These command handlers can be reloaded by the core,
|
|
* and handle basic RFC1459 commands. Commands within modules work
|
|
* the same way, however, they can be fully unloaded, where these
|
|
* may not.
|
|
*/
|
|
class CommandStats : public Command
|
|
{
|
|
public:
|
|
/** Constructor for stats.
|
|
*/
|
|
CommandStats (InspIRCd* Instance) : Command(Instance,"STATS",0,1) { syntax = "<stats-symbol> [<servername>]"; }
|
|
/** Handle command.
|
|
* @param parameters The parameters to the comamnd
|
|
* @param pcnt The number of parameters passed to teh command
|
|
* @param user The user issuing the command
|
|
* @return A value from CmdResult to indicate command success or failure.
|
|
*/
|
|
CmdResult Handle(const std::vector<std::string>& parameters, User *user);
|
|
};
|
|
|
|
#endif
|