summaryrefslogtreecommitdiff
path: root/include/commands
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-20 18:46:25 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-20 18:46:25 +0000
commit65923c4d397ce3655473b2d25db5acc90aa78075 (patch)
treed490b8dba15f474ef5c7503fa17b55098addd5f1 /include/commands
parent85cf2243e746777266e4fb2e8252ce17a05f16bb (diff)
Movement of cmd_* headers into include/commands (this is incomplete)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3896 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/commands')
-rw-r--r--include/commands/cmd_admin.h31
-rw-r--r--include/commands/cmd_away.h38
-rw-r--r--include/commands/cmd_commands.h38
-rw-r--r--include/commands/cmd_connect.h31
-rw-r--r--include/commands/cmd_die.h38
-rw-r--r--include/commands/cmd_eline.h38
-rw-r--r--include/commands/cmd_gline.h38
-rw-r--r--include/commands/cmd_info.h38
-rw-r--r--include/commands/cmd_invite.h38
-rw-r--r--include/commands/cmd_ison.h38
-rw-r--r--include/commands/cmd_join.h38
-rw-r--r--include/commands/cmd_kick.h38
-rw-r--r--include/commands/cmd_kill.h38
-rw-r--r--include/commands/cmd_kline.h38
-rw-r--r--include/commands/cmd_links.h38
-rw-r--r--include/commands/cmd_list.h38
-rw-r--r--include/commands/cmd_loadmodule.h38
-rw-r--r--include/commands/cmd_lusers.h38
-rw-r--r--include/commands/cmd_map.h38
-rw-r--r--include/commands/cmd_modules.h38
-rw-r--r--include/commands/cmd_motd.h38
-rw-r--r--include/commands/cmd_names.h38
-rw-r--r--include/commands/cmd_nick.h38
-rw-r--r--include/commands/cmd_notice.h38
-rw-r--r--include/commands/cmd_oper.h40
-rw-r--r--include/commands/cmd_part.h38
-rw-r--r--include/commands/cmd_pass.h38
-rw-r--r--include/commands/cmd_ping.h38
-rw-r--r--include/commands/cmd_pong.h38
-rw-r--r--include/commands/cmd_privmsg.h38
-rw-r--r--include/commands/cmd_qline.h38
-rw-r--r--include/commands/cmd_quit.h38
-rw-r--r--include/commands/cmd_rehash.h38
-rw-r--r--include/commands/cmd_restart.h38
-rw-r--r--include/commands/cmd_rules.h38
-rw-r--r--include/commands/cmd_server.h38
-rw-r--r--include/commands/cmd_squit.h38
-rw-r--r--include/commands/cmd_stats.h38
-rw-r--r--include/commands/cmd_summon.h38
-rw-r--r--include/commands/cmd_time.h38
-rw-r--r--include/commands/cmd_topic.h38
-rw-r--r--include/commands/cmd_trace.h38
-rw-r--r--include/commands/cmd_unloadmodule.h38
-rw-r--r--include/commands/cmd_user.h38
-rw-r--r--include/commands/cmd_userhost.h38
-rw-r--r--include/commands/cmd_users.h38
-rw-r--r--include/commands/cmd_version.h38
-rw-r--r--include/commands/cmd_wallops.h38
-rw-r--r--include/commands/cmd_who.h38
-rw-r--r--include/commands/cmd_whois.h40
-rw-r--r--include/commands/cmd_whowas.h38
-rw-r--r--include/commands/cmd_zline.h38
52 files changed, 1966 insertions, 0 deletions
diff --git a/include/commands/cmd_admin.h b/include/commands/cmd_admin.h
new file mode 100644
index 000000000..cf355305c
--- /dev/null
+++ b/include/commands/cmd_admin.h
@@ -0,0 +1,31 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_ADMIN_H__
+#define __CMD_ADMIN_H__
+
+#include "users.h"
+#include "channels.h"
+#include "ctables.h"
+
+class cmd_admin : public command_t
+{
+ public:
+ cmd_admin () : command_t("ADMIN",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_away.h b/include/commands/cmd_away.h
new file mode 100644
index 000000000..a4303a647
--- /dev/null
+++ b/include/commands/cmd_away.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_AWAY_H__
+#define __CMD_AWAY_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_away : public command_t
+{
+ public:
+ cmd_away () : command_t("AWAY",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_commands.h b/include/commands/cmd_commands.h
new file mode 100644
index 000000000..f3877d2c1
--- /dev/null
+++ b/include/commands/cmd_commands.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_COMMANDS_H__
+#define __CMD_COMMANDS_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_commands : public command_t
+{
+ public:
+ cmd_commands () : command_t("COMMANDS",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_connect.h b/include/commands/cmd_connect.h
new file mode 100644
index 000000000..a65000da4
--- /dev/null
+++ b/include/commands/cmd_connect.h
@@ -0,0 +1,31 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_CONNECT_H__
+#define __CMD_CONNECT_H__
+
+#include "users.h"
+#include "channels.h"
+#include "ctables.h"
+
+class cmd_connect : public command_t
+{
+ public:
+ cmd_connect () : command_t("CONNECT",'o',1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_die.h b/include/commands/cmd_die.h
new file mode 100644
index 000000000..89bcf6a26
--- /dev/null
+++ b/include/commands/cmd_die.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_DIE_H__
+#define __CMD_DIE_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_die : public command_t
+{
+ public:
+ cmd_die () : command_t("DIE",'o',1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_eline.h b/include/commands/cmd_eline.h
new file mode 100644
index 000000000..fcb9bcc55
--- /dev/null
+++ b/include/commands/cmd_eline.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_ELINE_H__
+#define __CMD_ELINE_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_eline : public command_t
+{
+ public:
+ cmd_eline () : command_t("ELINE",'o',1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_gline.h b/include/commands/cmd_gline.h
new file mode 100644
index 000000000..d996af694
--- /dev/null
+++ b/include/commands/cmd_gline.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_GLINE_H__
+#define __CMD_GLINE_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_gline : public command_t
+{
+ public:
+ cmd_gline () : command_t("GLINE",'o',1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_info.h b/include/commands/cmd_info.h
new file mode 100644
index 000000000..f0223e5e4
--- /dev/null
+++ b/include/commands/cmd_info.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_INFO_H__
+#define __CMD_INFO_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_info : public command_t
+{
+ public:
+ cmd_info () : command_t("INFO",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_invite.h b/include/commands/cmd_invite.h
new file mode 100644
index 000000000..4fe745bad
--- /dev/null
+++ b/include/commands/cmd_invite.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_INVITE_H__
+#define __CMD_INVITE_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_invite : public command_t
+{
+ public:
+ cmd_invite () : command_t("INVITE",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_ison.h b/include/commands/cmd_ison.h
new file mode 100644
index 000000000..2e66e2261
--- /dev/null
+++ b/include/commands/cmd_ison.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_ISON_H__
+#define __CMD_ISON_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_ison : public command_t
+{
+ public:
+ cmd_ison () : command_t("ISON",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_join.h b/include/commands/cmd_join.h
new file mode 100644
index 000000000..e8c9e8eec
--- /dev/null
+++ b/include/commands/cmd_join.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_JOIN_H__
+#define __CMD_JOIN_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_join : public command_t
+{
+ public:
+ cmd_join () : command_t("JOIN",0,1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_kick.h b/include/commands/cmd_kick.h
new file mode 100644
index 000000000..c23c2aedd
--- /dev/null
+++ b/include/commands/cmd_kick.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_KICK_H__
+#define __CMD_KICK_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_kick : public command_t
+{
+ public:
+ cmd_kick () : command_t("KICK",0,2) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_kill.h b/include/commands/cmd_kill.h
new file mode 100644
index 000000000..2fdf39e52
--- /dev/null
+++ b/include/commands/cmd_kill.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_KILL_H__
+#define __CMD_KILL_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_kill : public command_t
+{
+ public:
+ cmd_kill () : command_t("KILL",'o',2) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_kline.h b/include/commands/cmd_kline.h
new file mode 100644
index 000000000..c0e4bf8c7
--- /dev/null
+++ b/include/commands/cmd_kline.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_KLINE_H__
+#define __CMD_KLINE_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_kline : public command_t
+{
+ public:
+ cmd_kline () : command_t("KLINE",'o',1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_links.h b/include/commands/cmd_links.h
new file mode 100644
index 000000000..1d710a071
--- /dev/null
+++ b/include/commands/cmd_links.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_LINKS_H__
+#define __CMD_LINKS_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_links : public command_t
+{
+ public:
+ cmd_links () : command_t("LINKS",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_list.h b/include/commands/cmd_list.h
new file mode 100644
index 000000000..bc6a88749
--- /dev/null
+++ b/include/commands/cmd_list.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_LIST_H__
+#define __CMD_LIST_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_list : public command_t
+{
+ public:
+ cmd_list () : command_t("LIST",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_loadmodule.h b/include/commands/cmd_loadmodule.h
new file mode 100644
index 000000000..d9ee5ad4b
--- /dev/null
+++ b/include/commands/cmd_loadmodule.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_LOADMODULE_H__
+#define __CMD_LOADMODULE_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_loadmodule : public command_t
+{
+ public:
+ cmd_loadmodule () : command_t("LOADMODULE",'o',1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_lusers.h b/include/commands/cmd_lusers.h
new file mode 100644
index 000000000..79800bbce
--- /dev/null
+++ b/include/commands/cmd_lusers.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_LUSERS_H__
+#define __CMD_LUSERS_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_lusers : public command_t
+{
+ public:
+ cmd_lusers () : command_t("LUSERS",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_map.h b/include/commands/cmd_map.h
new file mode 100644
index 000000000..682407c38
--- /dev/null
+++ b/include/commands/cmd_map.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_MAP_H__
+#define __CMD_MAP_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_map : public command_t
+{
+ public:
+ cmd_map () : command_t("MAP",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_modules.h b/include/commands/cmd_modules.h
new file mode 100644
index 000000000..23a702247
--- /dev/null
+++ b/include/commands/cmd_modules.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_MODULES_H__
+#define __CMD_MODULES_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_modules : public command_t
+{
+ public:
+ cmd_modules () : command_t("MODULES",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_motd.h b/include/commands/cmd_motd.h
new file mode 100644
index 000000000..78ceaad2c
--- /dev/null
+++ b/include/commands/cmd_motd.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_MOTD_H__
+#define __CMD_MOTD_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_motd : public command_t
+{
+ public:
+ cmd_motd () : command_t("MOTD",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_names.h b/include/commands/cmd_names.h
new file mode 100644
index 000000000..0a70b4d21
--- /dev/null
+++ b/include/commands/cmd_names.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_NAMES_H__
+#define __CMD_NAMES_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_names : public command_t
+{
+ public:
+ cmd_names () : command_t("NAMES",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_nick.h b/include/commands/cmd_nick.h
new file mode 100644
index 000000000..b0f39a1a4
--- /dev/null
+++ b/include/commands/cmd_nick.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_NICK_H__
+#define __CMD_NICK_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_nick : public command_t
+{
+ public:
+ cmd_nick () : command_t("NICK",0,1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_notice.h b/include/commands/cmd_notice.h
new file mode 100644
index 000000000..b392a0c3a
--- /dev/null
+++ b/include/commands/cmd_notice.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_NOTICE_H__
+#define __CMD_NOTICE_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_notice : public command_t
+{
+ public:
+ cmd_notice () : command_t("NOTICE",0,2) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_oper.h b/include/commands/cmd_oper.h
new file mode 100644
index 000000000..e71ca07a6
--- /dev/null
+++ b/include/commands/cmd_oper.h
@@ -0,0 +1,40 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_OPER_H__
+#define __CMD_OPER_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+bool OneOfMatches(const char* host, const char* hostlist);
+
+class cmd_oper : public command_t
+{
+ public:
+ cmd_oper () : command_t("OPER",0,2) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_part.h b/include/commands/cmd_part.h
new file mode 100644
index 000000000..994244d56
--- /dev/null
+++ b/include/commands/cmd_part.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_PART_H__
+#define __CMD_PART_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_part : public command_t
+{
+ public:
+ cmd_part () : command_t("PART",0,1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_pass.h b/include/commands/cmd_pass.h
new file mode 100644
index 000000000..03c5ca7fc
--- /dev/null
+++ b/include/commands/cmd_pass.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_PASS_H__
+#define __CMD_PASS_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_pass : public command_t
+{
+ public:
+ cmd_pass () : command_t("PASS",0,1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_ping.h b/include/commands/cmd_ping.h
new file mode 100644
index 000000000..fdde057d3
--- /dev/null
+++ b/include/commands/cmd_ping.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_PING_H__
+#define __CMD_PING_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_ping : public command_t
+{
+ public:
+ cmd_ping () : command_t("PING",0,1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_pong.h b/include/commands/cmd_pong.h
new file mode 100644
index 000000000..381d16253
--- /dev/null
+++ b/include/commands/cmd_pong.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_PONG_H__
+#define __CMD_PONG_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_pong : public command_t
+{
+ public:
+ cmd_pong () : command_t("PONG",0,1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_privmsg.h b/include/commands/cmd_privmsg.h
new file mode 100644
index 000000000..2af58b9d0
--- /dev/null
+++ b/include/commands/cmd_privmsg.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_PRIVMSG_H__
+#define __CMD_PRIVMSG_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_privmsg : public command_t
+{
+ public:
+ cmd_privmsg () : command_t("PRIVMSG",0,2) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_qline.h b/include/commands/cmd_qline.h
new file mode 100644
index 000000000..5b209133e
--- /dev/null
+++ b/include/commands/cmd_qline.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_QLINE_H__
+#define __CMD_QLINE_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_qline : public command_t
+{
+ public:
+ cmd_qline () : command_t("QLINE",'o',1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_quit.h b/include/commands/cmd_quit.h
new file mode 100644
index 000000000..f60c4b6b0
--- /dev/null
+++ b/include/commands/cmd_quit.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_QUIT_H__
+#define __CMD_QUIT_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_quit : public command_t
+{
+ public:
+ cmd_quit () : command_t("QUIT",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_rehash.h b/include/commands/cmd_rehash.h
new file mode 100644
index 000000000..f56ab126c
--- /dev/null
+++ b/include/commands/cmd_rehash.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_REHASH_H__
+#define __CMD_REHASH_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_rehash : public command_t
+{
+ public:
+ cmd_rehash () : command_t("REHASH",'o',0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_restart.h b/include/commands/cmd_restart.h
new file mode 100644
index 000000000..622552a79
--- /dev/null
+++ b/include/commands/cmd_restart.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_RESTART_H__
+#define __CMD_RESTART_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_restart : public command_t
+{
+ public:
+ cmd_restart () : command_t("RESTART",'o',1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_rules.h b/include/commands/cmd_rules.h
new file mode 100644
index 000000000..40d40ff6c
--- /dev/null
+++ b/include/commands/cmd_rules.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_RULES_H__
+#define __CMD_RULES_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_rules : public command_t
+{
+ public:
+ cmd_rules () : command_t("RULES",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_server.h b/include/commands/cmd_server.h
new file mode 100644
index 000000000..d3822c9d8
--- /dev/null
+++ b/include/commands/cmd_server.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_SERVER_H__
+#define __CMD_SERVER_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_server : public command_t
+{
+ public:
+ cmd_server () : command_t("SERVER",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_squit.h b/include/commands/cmd_squit.h
new file mode 100644
index 000000000..18fb2e926
--- /dev/null
+++ b/include/commands/cmd_squit.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_SQUIT_H__
+#define __CMD_SQUIT_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_squit : public command_t
+{
+ public:
+ cmd_squit () : command_t("SQUIT",'o',1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_stats.h b/include/commands/cmd_stats.h
new file mode 100644
index 000000000..06924fb13
--- /dev/null
+++ b/include/commands/cmd_stats.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * 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 <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_stats : public command_t
+{
+ public:
+ cmd_stats () : command_t("STATS",0,1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_summon.h b/include/commands/cmd_summon.h
new file mode 100644
index 000000000..cfa70800b
--- /dev/null
+++ b/include/commands/cmd_summon.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * 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 <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_summon : public command_t
+{
+ public:
+ cmd_summon () : command_t("SUMMON",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_time.h b/include/commands/cmd_time.h
new file mode 100644
index 000000000..b45b62bfe
--- /dev/null
+++ b/include/commands/cmd_time.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_TIME_H__
+#define __CMD_TIME_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_time : public command_t
+{
+ public:
+ cmd_time () : command_t("TIME",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_topic.h b/include/commands/cmd_topic.h
new file mode 100644
index 000000000..e467a8b03
--- /dev/null
+++ b/include/commands/cmd_topic.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_TOPIC_H__
+#define __CMD_TOPIC_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_topic : public command_t
+{
+ public:
+ cmd_topic () : command_t("TOPIC",0,1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_trace.h b/include/commands/cmd_trace.h
new file mode 100644
index 000000000..9c8d9ceed
--- /dev/null
+++ b/include/commands/cmd_trace.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_TRACE_H__
+#define __CMD_TRACE_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_trace : public command_t
+{
+ public:
+ cmd_trace () : command_t("TRACE",'o',0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_unloadmodule.h b/include/commands/cmd_unloadmodule.h
new file mode 100644
index 000000000..8789d83eb
--- /dev/null
+++ b/include/commands/cmd_unloadmodule.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_UNLOADMODULE_H__
+#define __CMD_UNLOADMODULE_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_unloadmodule : public command_t
+{
+ public:
+ cmd_unloadmodule () : command_t("UNLOADMODULE",'o',1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_user.h b/include/commands/cmd_user.h
new file mode 100644
index 000000000..f4c9919a9
--- /dev/null
+++ b/include/commands/cmd_user.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_USER_H__
+#define __CMD_USER_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_user : public command_t
+{
+ public:
+ cmd_user () : command_t("USER",0,4) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_userhost.h b/include/commands/cmd_userhost.h
new file mode 100644
index 000000000..b319bb782
--- /dev/null
+++ b/include/commands/cmd_userhost.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_USERHOST_H__
+#define __CMD_USERHOST_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_userhost : public command_t
+{
+ public:
+ cmd_userhost () : command_t("USERHOST",0,1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_users.h b/include/commands/cmd_users.h
new file mode 100644
index 000000000..d7ebcdec9
--- /dev/null
+++ b/include/commands/cmd_users.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * 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 <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_users : public command_t
+{
+ public:
+ cmd_users () : command_t("USERS",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_version.h b/include/commands/cmd_version.h
new file mode 100644
index 000000000..0fcd79543
--- /dev/null
+++ b/include/commands/cmd_version.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_VERSION_H__
+#define __CMD_VERSION_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_version : public command_t
+{
+ public:
+ cmd_version () : command_t("VERSION",0,0) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_wallops.h b/include/commands/cmd_wallops.h
new file mode 100644
index 000000000..b32783ef6
--- /dev/null
+++ b/include/commands/cmd_wallops.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_WALLOPS_H__
+#define __CMD_WALLOPS_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_wallops : public command_t
+{
+ public:
+ cmd_wallops () : command_t("WALLOPS",'o',1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_who.h b/include/commands/cmd_who.h
new file mode 100644
index 000000000..0487c43dc
--- /dev/null
+++ b/include/commands/cmd_who.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_WHO_H__
+#define __CMD_WHO_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_who : public command_t
+{
+ public:
+ cmd_who () : command_t("WHO",0,1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_whois.h b/include/commands/cmd_whois.h
new file mode 100644
index 000000000..5e62e64a3
--- /dev/null
+++ b/include/commands/cmd_whois.h
@@ -0,0 +1,40 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_WHOIS_H__
+#define __CMD_WHOIS_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+void do_whois(userrec* user, userrec* dest,unsigned long signon, unsigned long idle, char* nick);
+
+class cmd_whois : public command_t
+{
+ public:
+ cmd_whois () : command_t("WHOIS",0,1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_whowas.h b/include/commands/cmd_whowas.h
new file mode 100644
index 000000000..09269a5f1
--- /dev/null
+++ b/include/commands/cmd_whowas.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_WHOWAS_H__
+#define __CMD_WHOWAS_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_whowas : public command_t
+{
+ public:
+ cmd_whowas () : command_t("WHOWAS",0,1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif
diff --git a/include/commands/cmd_zline.h b/include/commands/cmd_zline.h
new file mode 100644
index 000000000..438e33665
--- /dev/null
+++ b/include/commands/cmd_zline.h
@@ -0,0 +1,38 @@
+/* +------------------------------------+
+ * | Inspire Internet Relay Chat Daemon |
+ * +------------------------------------+
+ *
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
+ *
+ * Written by Craig Edwards, Craig McLure, and others.
+ * This program is free but copyrighted software; see
+ * the file COPYING for details.
+ *
+ * ---------------------------------------------------
+ */
+
+#ifndef __CMD_ZLINE_H__
+#define __CMD_ZLINE_H__
+
+// include the common header files
+
+#include <typeinfo>
+#include <iostream>
+#include <string>
+#include <deque>
+#include <sstream>
+#include <vector>
+#include "users.h"
+#include "channels.h"
+
+class cmd_zline : public command_t
+{
+ public:
+ cmd_zline () : command_t("ZLINE",'o',1) { }
+ void Handle(char **parameters, int pcnt, userrec *user);
+};
+
+#endif