summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-09-27 15:48:05 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-09-27 15:48:05 +0000
commitaffe14511b9f874a36610650722215ad61af0c53 (patch)
tree797b963a088c77165c4eed290edd266bacb2efd5
parent6304c3747312e70d670f70b1dfda0ba10870c3bc (diff)
Remove /summon and /users (I think 15+ years of being marked deprecated is enough, really)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8088 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--conf/inspircd.helpop-full.example16
-rw-r--r--include/commands/cmd_summon.h45
-rw-r--r--include/commands/cmd_users.h45
-rw-r--r--include/ctables.h4
-rw-r--r--src/cmd_summon.cpp26
-rw-r--r--src/cmd_users.cpp26
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;
-}