diff options
-rw-r--r-- | conf/inspircd.helpop-full.example | 16 | ||||
-rw-r--r-- | include/commands/cmd_summon.h | 45 | ||||
-rw-r--r-- | include/commands/cmd_users.h | 45 | ||||
-rw-r--r-- | include/ctables.h | 4 | ||||
-rw-r--r-- | src/cmd_summon.cpp | 26 | ||||
-rw-r--r-- | src/cmd_users.cpp | 26 |
6 files changed, 6 insertions, 156 deletions
diff --git a/conf/inspircd.helpop-full.example b/conf/inspircd.helpop-full.example index a4b4f1e11..7e3295eae 100644 --- a/conf/inspircd.helpop-full.example +++ b/conf/inspircd.helpop-full.example @@ -28,10 +28,10 @@ PONG ADMIN PRIVMSG INFO TIME WHOIS NOTICE JOIN NAMES PART KICK MODE TOPIC WHO MOTD RULES OPER LIST LUSERS STATS -USERHOST AWAY ISON SUMMON USERS -INVITE PASS WHOWAS LINKS MAP -COMMANDS MODULES KNOCK SILENCE DEVOICE -REMOVE UNINVITE VHOST WATCH USERIP"> +USERHOST AWAY ISON INVITE PASS +WHOWAS LINKS MAP COMMANDS MODULES +KNOCK SILENCE DEVOICE REMOVE UNINVITE +VHOST WATCH USERIP"> <helpop key="watch" value="/WATCH [C|S|+/-[NICK]] Adds or deletes a user from the watch list. C clears the list @@ -191,14 +191,6 @@ removes your away status and previous message."> Returns a subset of the nicks you give, showing only those that are currently online."> -<helpop key="summon" value="/SUMMON [user] -Summons a user from the shell where the ircd is running onto irc -This command is deprecated in the current protocol."> - -<helpop key="users" value="/USERS -Shows users logged into the shell where the ircd is running. -This command is deprecated in the current protocol."> - <helpop key="invite" value="/INVITE [nick] [channel] Invites a user to a channel. If the channel is NOT +i, any user, channel op or not, may invite any other user to the diff --git a/include/commands/cmd_summon.h b/include/commands/cmd_summon.h deleted file mode 100644 index f8ea20bb9..000000000 --- a/include/commands/cmd_summon.h +++ /dev/null @@ -1,45 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd: (C) 2002-2007 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits - * - * This program is free but copyrighted software; see - * the file COPYING for details. - * - * --------------------------------------------------- - */ - -#ifndef __CMD_SUMMON_H__ -#define __CMD_SUMMON_H__ - -// include the common header files - -#include <string> -#include <vector> -#include "inspircd.h" -#include "users.h" -#include "channels.h" - -/** Handle /SUMMON stub. 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 cmd_summon : public command_t -{ - public: - /** Constructor for summon. - */ - cmd_summon (InspIRCd* Instance) : command_t(Instance,"SUMMON",0,0) { } - /** 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 char** parameters, int pcnt, userrec *user); -}; - -#endif diff --git a/include/commands/cmd_users.h b/include/commands/cmd_users.h deleted file mode 100644 index 1ba2ad280..000000000 --- a/include/commands/cmd_users.h +++ /dev/null @@ -1,45 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd: (C) 2002-2007 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits - * - * This program is free but copyrighted software; see - * the file COPYING for details. - * - * --------------------------------------------------- - */ - -#ifndef __CMD_USERS_H__ -#define __CMD_USERS_H__ - -// include the common header files -// -#include <string> -#include <vector> -#include "inspircd.h" -#include "users.h" -#include "channels.h" - -/** Handle /USERS stub. 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 cmd_users : public command_t -{ - public: - /** Constructor for users. - */ - cmd_users (InspIRCd* Instance) : command_t(Instance,"USERS",0,0) { } - /** 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 char** parameters, int pcnt, userrec *user); -}; - -#endif diff --git a/include/ctables.h b/include/ctables.h index 7bd73448c..d112e885c 100644 --- a/include/ctables.h +++ b/include/ctables.h @@ -72,10 +72,10 @@ class CoreExport command_t : public Extensible int min_params; /** used by /stats m */ - long use_count; + long double use_count; /** used by /stats m */ - float total_bytes; + long double total_bytes; /** used for resource tracking between modules */ std::string source; diff --git a/src/cmd_summon.cpp b/src/cmd_summon.cpp deleted file mode 100644 index 3b3595c3f..000000000 --- a/src/cmd_summon.cpp +++ /dev/null @@ -1,26 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd: (C) 2002-2007 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits - * - * This program is free but copyrighted software; see - * the file COPYING for details. - * - * --------------------------------------------------- - */ - -#include "inspircd.h" -#include "commands/cmd_summon.h" - -extern "C" DllExport command_t* init_command(InspIRCd* Instance) -{ - return new cmd_summon(Instance); -} - -CmdResult cmd_summon::Handle (const char** parameters, int pcnt, userrec *user) -{ - user->WriteServ("445 %s :SUMMON has been disabled (depreciated command)",user->nick); - return CMD_FAILURE; -} diff --git a/src/cmd_users.cpp b/src/cmd_users.cpp deleted file mode 100644 index 969961390..000000000 --- a/src/cmd_users.cpp +++ /dev/null @@ -1,26 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd: (C) 2002-2007 InspIRCd Development Team - * See: http://www.inspircd.org/wiki/index.php/Credits - * - * This program is free but copyrighted software; see - * the file COPYING for details. - * - * --------------------------------------------------- - */ - -#include "inspircd.h" -#include "commands/cmd_users.h" - -extern "C" DllExport command_t* init_command(InspIRCd* Instance) -{ - return new cmd_users(Instance); -} - -CmdResult cmd_users::Handle (const char** parameters, int pcnt, userrec *user) -{ - user->WriteServ("446 %s :USERS has been disabled (depreciated command)",user->nick); - return CMD_FAILURE; -} |