From 65923c4d397ce3655473b2d25db5acc90aa78075 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 20 Apr 2006 18:46:25 +0000 Subject: 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 --- include/cmd_admin.h | 31 ----------- include/cmd_away.h | 38 ------------- include/cmd_commands.h | 38 ------------- include/cmd_connect.h | 31 ----------- include/cmd_die.h | 38 ------------- include/cmd_eline.h | 38 ------------- include/cmd_gline.h | 38 ------------- include/cmd_info.h | 38 ------------- include/cmd_invite.h | 38 ------------- include/cmd_ison.h | 38 ------------- include/cmd_join.h | 38 ------------- include/cmd_kick.h | 38 ------------- include/cmd_kill.h | 38 ------------- include/cmd_kline.h | 38 ------------- include/cmd_links.h | 38 ------------- include/cmd_list.h | 38 ------------- include/cmd_loadmodule.h | 38 ------------- include/cmd_lusers.h | 38 ------------- include/cmd_map.h | 38 ------------- include/cmd_modules.h | 38 ------------- include/cmd_motd.h | 38 ------------- include/cmd_names.h | 38 ------------- include/cmd_nick.h | 38 ------------- include/cmd_notice.h | 38 ------------- include/cmd_oper.h | 40 -------------- include/cmd_part.h | 38 ------------- include/cmd_pass.h | 38 ------------- include/cmd_ping.h | 38 ------------- include/cmd_pong.h | 38 ------------- include/cmd_privmsg.h | 38 ------------- include/cmd_qline.h | 38 ------------- include/cmd_quit.h | 38 ------------- include/cmd_rehash.h | 38 ------------- include/cmd_restart.h | 38 ------------- include/cmd_rules.h | 38 ------------- include/cmd_server.h | 38 ------------- include/cmd_squit.h | 38 ------------- include/cmd_stats.h | 38 ------------- include/cmd_summon.h | 38 ------------- include/cmd_time.h | 38 ------------- include/cmd_topic.h | 38 ------------- include/cmd_trace.h | 38 ------------- include/cmd_unloadmodule.h | 38 ------------- include/cmd_user.h | 38 ------------- include/cmd_userhost.h | 38 ------------- include/cmd_users.h | 38 ------------- include/cmd_version.h | 38 ------------- include/cmd_wallops.h | 38 ------------- include/cmd_who.h | 38 ------------- include/cmd_whois.h | 40 -------------- include/cmd_whowas.h | 38 ------------- include/cmd_zline.h | 38 ------------- include/commands.h | 104 ++++++++++++++++++------------------ include/commands/cmd_admin.h | 31 +++++++++++ include/commands/cmd_away.h | 38 +++++++++++++ include/commands/cmd_commands.h | 38 +++++++++++++ include/commands/cmd_connect.h | 31 +++++++++++ include/commands/cmd_die.h | 38 +++++++++++++ include/commands/cmd_eline.h | 38 +++++++++++++ include/commands/cmd_gline.h | 38 +++++++++++++ include/commands/cmd_info.h | 38 +++++++++++++ include/commands/cmd_invite.h | 38 +++++++++++++ include/commands/cmd_ison.h | 38 +++++++++++++ include/commands/cmd_join.h | 38 +++++++++++++ include/commands/cmd_kick.h | 38 +++++++++++++ include/commands/cmd_kill.h | 38 +++++++++++++ include/commands/cmd_kline.h | 38 +++++++++++++ include/commands/cmd_links.h | 38 +++++++++++++ include/commands/cmd_list.h | 38 +++++++++++++ include/commands/cmd_loadmodule.h | 38 +++++++++++++ include/commands/cmd_lusers.h | 38 +++++++++++++ include/commands/cmd_map.h | 38 +++++++++++++ include/commands/cmd_modules.h | 38 +++++++++++++ include/commands/cmd_motd.h | 38 +++++++++++++ include/commands/cmd_names.h | 38 +++++++++++++ include/commands/cmd_nick.h | 38 +++++++++++++ include/commands/cmd_notice.h | 38 +++++++++++++ include/commands/cmd_oper.h | 40 ++++++++++++++ include/commands/cmd_part.h | 38 +++++++++++++ include/commands/cmd_pass.h | 38 +++++++++++++ include/commands/cmd_ping.h | 38 +++++++++++++ include/commands/cmd_pong.h | 38 +++++++++++++ include/commands/cmd_privmsg.h | 38 +++++++++++++ include/commands/cmd_qline.h | 38 +++++++++++++ include/commands/cmd_quit.h | 38 +++++++++++++ include/commands/cmd_rehash.h | 38 +++++++++++++ include/commands/cmd_restart.h | 38 +++++++++++++ include/commands/cmd_rules.h | 38 +++++++++++++ include/commands/cmd_server.h | 38 +++++++++++++ include/commands/cmd_squit.h | 38 +++++++++++++ include/commands/cmd_stats.h | 38 +++++++++++++ include/commands/cmd_summon.h | 38 +++++++++++++ include/commands/cmd_time.h | 38 +++++++++++++ include/commands/cmd_topic.h | 38 +++++++++++++ include/commands/cmd_trace.h | 38 +++++++++++++ include/commands/cmd_unloadmodule.h | 38 +++++++++++++ include/commands/cmd_user.h | 38 +++++++++++++ include/commands/cmd_userhost.h | 38 +++++++++++++ include/commands/cmd_users.h | 38 +++++++++++++ include/commands/cmd_version.h | 38 +++++++++++++ include/commands/cmd_wallops.h | 38 +++++++++++++ include/commands/cmd_who.h | 38 +++++++++++++ include/commands/cmd_whois.h | 40 ++++++++++++++ include/commands/cmd_whowas.h | 38 +++++++++++++ include/commands/cmd_zline.h | 38 +++++++++++++ 105 files changed, 2018 insertions(+), 2018 deletions(-) delete mode 100644 include/cmd_admin.h delete mode 100644 include/cmd_away.h delete mode 100644 include/cmd_commands.h delete mode 100644 include/cmd_connect.h delete mode 100644 include/cmd_die.h delete mode 100644 include/cmd_eline.h delete mode 100644 include/cmd_gline.h delete mode 100644 include/cmd_info.h delete mode 100644 include/cmd_invite.h delete mode 100644 include/cmd_ison.h delete mode 100644 include/cmd_join.h delete mode 100644 include/cmd_kick.h delete mode 100644 include/cmd_kill.h delete mode 100644 include/cmd_kline.h delete mode 100644 include/cmd_links.h delete mode 100644 include/cmd_list.h delete mode 100644 include/cmd_loadmodule.h delete mode 100644 include/cmd_lusers.h delete mode 100644 include/cmd_map.h delete mode 100644 include/cmd_modules.h delete mode 100644 include/cmd_motd.h delete mode 100644 include/cmd_names.h delete mode 100644 include/cmd_nick.h delete mode 100644 include/cmd_notice.h delete mode 100644 include/cmd_oper.h delete mode 100644 include/cmd_part.h delete mode 100644 include/cmd_pass.h delete mode 100644 include/cmd_ping.h delete mode 100644 include/cmd_pong.h delete mode 100644 include/cmd_privmsg.h delete mode 100644 include/cmd_qline.h delete mode 100644 include/cmd_quit.h delete mode 100644 include/cmd_rehash.h delete mode 100644 include/cmd_restart.h delete mode 100644 include/cmd_rules.h delete mode 100644 include/cmd_server.h delete mode 100644 include/cmd_squit.h delete mode 100644 include/cmd_stats.h delete mode 100644 include/cmd_summon.h delete mode 100644 include/cmd_time.h delete mode 100644 include/cmd_topic.h delete mode 100644 include/cmd_trace.h delete mode 100644 include/cmd_unloadmodule.h delete mode 100644 include/cmd_user.h delete mode 100644 include/cmd_userhost.h delete mode 100644 include/cmd_users.h delete mode 100644 include/cmd_version.h delete mode 100644 include/cmd_wallops.h delete mode 100644 include/cmd_who.h delete mode 100644 include/cmd_whois.h delete mode 100644 include/cmd_whowas.h delete mode 100644 include/cmd_zline.h create mode 100644 include/commands/cmd_admin.h create mode 100644 include/commands/cmd_away.h create mode 100644 include/commands/cmd_commands.h create mode 100644 include/commands/cmd_connect.h create mode 100644 include/commands/cmd_die.h create mode 100644 include/commands/cmd_eline.h create mode 100644 include/commands/cmd_gline.h create mode 100644 include/commands/cmd_info.h create mode 100644 include/commands/cmd_invite.h create mode 100644 include/commands/cmd_ison.h create mode 100644 include/commands/cmd_join.h create mode 100644 include/commands/cmd_kick.h create mode 100644 include/commands/cmd_kill.h create mode 100644 include/commands/cmd_kline.h create mode 100644 include/commands/cmd_links.h create mode 100644 include/commands/cmd_list.h create mode 100644 include/commands/cmd_loadmodule.h create mode 100644 include/commands/cmd_lusers.h create mode 100644 include/commands/cmd_map.h create mode 100644 include/commands/cmd_modules.h create mode 100644 include/commands/cmd_motd.h create mode 100644 include/commands/cmd_names.h create mode 100644 include/commands/cmd_nick.h create mode 100644 include/commands/cmd_notice.h create mode 100644 include/commands/cmd_oper.h create mode 100644 include/commands/cmd_part.h create mode 100644 include/commands/cmd_pass.h create mode 100644 include/commands/cmd_ping.h create mode 100644 include/commands/cmd_pong.h create mode 100644 include/commands/cmd_privmsg.h create mode 100644 include/commands/cmd_qline.h create mode 100644 include/commands/cmd_quit.h create mode 100644 include/commands/cmd_rehash.h create mode 100644 include/commands/cmd_restart.h create mode 100644 include/commands/cmd_rules.h create mode 100644 include/commands/cmd_server.h create mode 100644 include/commands/cmd_squit.h create mode 100644 include/commands/cmd_stats.h create mode 100644 include/commands/cmd_summon.h create mode 100644 include/commands/cmd_time.h create mode 100644 include/commands/cmd_topic.h create mode 100644 include/commands/cmd_trace.h create mode 100644 include/commands/cmd_unloadmodule.h create mode 100644 include/commands/cmd_user.h create mode 100644 include/commands/cmd_userhost.h create mode 100644 include/commands/cmd_users.h create mode 100644 include/commands/cmd_version.h create mode 100644 include/commands/cmd_wallops.h create mode 100644 include/commands/cmd_who.h create mode 100644 include/commands/cmd_whois.h create mode 100644 include/commands/cmd_whowas.h create mode 100644 include/commands/cmd_zline.h (limited to 'include') diff --git a/include/cmd_admin.h b/include/cmd_admin.h deleted file mode 100644 index cf355305c..000000000 --- a/include/cmd_admin.h +++ /dev/null @@ -1,31 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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/cmd_away.h b/include/cmd_away.h deleted file mode 100644 index a4303a647..000000000 --- a/include/cmd_away.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_commands.h b/include/cmd_commands.h deleted file mode 100644 index f3877d2c1..000000000 --- a/include/cmd_commands.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_connect.h b/include/cmd_connect.h deleted file mode 100644 index a65000da4..000000000 --- a/include/cmd_connect.h +++ /dev/null @@ -1,31 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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/cmd_die.h b/include/cmd_die.h deleted file mode 100644 index 89bcf6a26..000000000 --- a/include/cmd_die.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_eline.h b/include/cmd_eline.h deleted file mode 100644 index fcb9bcc55..000000000 --- a/include/cmd_eline.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_gline.h b/include/cmd_gline.h deleted file mode 100644 index d996af694..000000000 --- a/include/cmd_gline.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_info.h b/include/cmd_info.h deleted file mode 100644 index f0223e5e4..000000000 --- a/include/cmd_info.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_invite.h b/include/cmd_invite.h deleted file mode 100644 index 4fe745bad..000000000 --- a/include/cmd_invite.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_ison.h b/include/cmd_ison.h deleted file mode 100644 index 2e66e2261..000000000 --- a/include/cmd_ison.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_join.h b/include/cmd_join.h deleted file mode 100644 index e8c9e8eec..000000000 --- a/include/cmd_join.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_kick.h b/include/cmd_kick.h deleted file mode 100644 index c23c2aedd..000000000 --- a/include/cmd_kick.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_kill.h b/include/cmd_kill.h deleted file mode 100644 index 2fdf39e52..000000000 --- a/include/cmd_kill.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_kline.h b/include/cmd_kline.h deleted file mode 100644 index c0e4bf8c7..000000000 --- a/include/cmd_kline.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_links.h b/include/cmd_links.h deleted file mode 100644 index 1d710a071..000000000 --- a/include/cmd_links.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_list.h b/include/cmd_list.h deleted file mode 100644 index bc6a88749..000000000 --- a/include/cmd_list.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_loadmodule.h b/include/cmd_loadmodule.h deleted file mode 100644 index d9ee5ad4b..000000000 --- a/include/cmd_loadmodule.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_lusers.h b/include/cmd_lusers.h deleted file mode 100644 index 79800bbce..000000000 --- a/include/cmd_lusers.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_map.h b/include/cmd_map.h deleted file mode 100644 index 682407c38..000000000 --- a/include/cmd_map.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_modules.h b/include/cmd_modules.h deleted file mode 100644 index 23a702247..000000000 --- a/include/cmd_modules.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_motd.h b/include/cmd_motd.h deleted file mode 100644 index 78ceaad2c..000000000 --- a/include/cmd_motd.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_names.h b/include/cmd_names.h deleted file mode 100644 index 0a70b4d21..000000000 --- a/include/cmd_names.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_nick.h b/include/cmd_nick.h deleted file mode 100644 index b0f39a1a4..000000000 --- a/include/cmd_nick.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_notice.h b/include/cmd_notice.h deleted file mode 100644 index b392a0c3a..000000000 --- a/include/cmd_notice.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_oper.h b/include/cmd_oper.h deleted file mode 100644 index e71ca07a6..000000000 --- a/include/cmd_oper.h +++ /dev/null @@ -1,40 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_part.h b/include/cmd_part.h deleted file mode 100644 index 994244d56..000000000 --- a/include/cmd_part.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_pass.h b/include/cmd_pass.h deleted file mode 100644 index 03c5ca7fc..000000000 --- a/include/cmd_pass.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_ping.h b/include/cmd_ping.h deleted file mode 100644 index fdde057d3..000000000 --- a/include/cmd_ping.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_pong.h b/include/cmd_pong.h deleted file mode 100644 index 381d16253..000000000 --- a/include/cmd_pong.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_privmsg.h b/include/cmd_privmsg.h deleted file mode 100644 index 2af58b9d0..000000000 --- a/include/cmd_privmsg.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_qline.h b/include/cmd_qline.h deleted file mode 100644 index 5b209133e..000000000 --- a/include/cmd_qline.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_quit.h b/include/cmd_quit.h deleted file mode 100644 index f60c4b6b0..000000000 --- a/include/cmd_quit.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_rehash.h b/include/cmd_rehash.h deleted file mode 100644 index f56ab126c..000000000 --- a/include/cmd_rehash.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_restart.h b/include/cmd_restart.h deleted file mode 100644 index 622552a79..000000000 --- a/include/cmd_restart.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_rules.h b/include/cmd_rules.h deleted file mode 100644 index 40d40ff6c..000000000 --- a/include/cmd_rules.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_server.h b/include/cmd_server.h deleted file mode 100644 index d3822c9d8..000000000 --- a/include/cmd_server.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_squit.h b/include/cmd_squit.h deleted file mode 100644 index 18fb2e926..000000000 --- a/include/cmd_squit.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_stats.h b/include/cmd_stats.h deleted file mode 100644 index 06924fb13..000000000 --- a/include/cmd_stats.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_summon.h b/include/cmd_summon.h deleted file mode 100644 index cfa70800b..000000000 --- a/include/cmd_summon.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_time.h b/include/cmd_time.h deleted file mode 100644 index b45b62bfe..000000000 --- a/include/cmd_time.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_topic.h b/include/cmd_topic.h deleted file mode 100644 index e467a8b03..000000000 --- a/include/cmd_topic.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_trace.h b/include/cmd_trace.h deleted file mode 100644 index 9c8d9ceed..000000000 --- a/include/cmd_trace.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_unloadmodule.h b/include/cmd_unloadmodule.h deleted file mode 100644 index 8789d83eb..000000000 --- a/include/cmd_unloadmodule.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_user.h b/include/cmd_user.h deleted file mode 100644 index f4c9919a9..000000000 --- a/include/cmd_user.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_userhost.h b/include/cmd_userhost.h deleted file mode 100644 index b319bb782..000000000 --- a/include/cmd_userhost.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_users.h b/include/cmd_users.h deleted file mode 100644 index d7ebcdec9..000000000 --- a/include/cmd_users.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_version.h b/include/cmd_version.h deleted file mode 100644 index 0fcd79543..000000000 --- a/include/cmd_version.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_wallops.h b/include/cmd_wallops.h deleted file mode 100644 index b32783ef6..000000000 --- a/include/cmd_wallops.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_who.h b/include/cmd_who.h deleted file mode 100644 index 0487c43dc..000000000 --- a/include/cmd_who.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_whois.h b/include/cmd_whois.h deleted file mode 100644 index 5e62e64a3..000000000 --- a/include/cmd_whois.h +++ /dev/null @@ -1,40 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_whowas.h b/include/cmd_whowas.h deleted file mode 100644 index 09269a5f1..000000000 --- a/include/cmd_whowas.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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/cmd_zline.h b/include/cmd_zline.h deleted file mode 100644 index 438e33665..000000000 --- a/include/cmd_zline.h +++ /dev/null @@ -1,38 +0,0 @@ -/* +------------------------------------+ - * | Inspire Internet Relay Chat Daemon | - * +------------------------------------+ - * - * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev. - * E-mail: - * - * - * - * 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 -#include -#include -#include -#include -#include -#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 diff --git a/include/commands.h b/include/commands.h index 300c81aa7..2aba8202f 100644 --- a/include/commands.h +++ b/include/commands.h @@ -44,58 +44,58 @@ void split_chlist(userrec* user, userrec* dest, const std::string &cl); * the commands. */ -#include "cmd_admin.h" -#include "cmd_away.h" -#include "cmd_commands.h" -#include "cmd_connect.h" -#include "cmd_die.h" -#include "cmd_eline.h" -#include "cmd_gline.h" -#include "cmd_info.h" -#include "cmd_invite.h" -#include "cmd_ison.h" -#include "cmd_join.h" -#include "cmd_kick.h" -#include "cmd_kill.h" -#include "cmd_kline.h" -#include "cmd_links.h" -#include "cmd_list.h" -#include "cmd_loadmodule.h" -#include "cmd_lusers.h" -#include "cmd_map.h" -#include "cmd_modules.h" -#include "cmd_motd.h" -#include "cmd_names.h" -#include "cmd_nick.h" -#include "cmd_notice.h" -#include "cmd_oper.h" -#include "cmd_part.h" -#include "cmd_pass.h" -#include "cmd_ping.h" -#include "cmd_pong.h" -#include "cmd_privmsg.h" -#include "cmd_qline.h" -#include "cmd_quit.h" -#include "cmd_rehash.h" -#include "cmd_restart.h" -#include "cmd_rules.h" -#include "cmd_server.h" -#include "cmd_squit.h" -#include "cmd_stats.h" -#include "cmd_summon.h" -#include "cmd_time.h" -#include "cmd_topic.h" -#include "cmd_trace.h" -#include "cmd_unloadmodule.h" -#include "cmd_user.h" -#include "cmd_userhost.h" -#include "cmd_users.h" -#include "cmd_version.h" -#include "cmd_wallops.h" -#include "cmd_who.h" -#include "cmd_whois.h" -#include "cmd_whowas.h" -#include "cmd_zline.h" +#include "commands/cmd_admin.h" +#include "commands/cmd_away.h" +#include "commands/cmd_commands.h" +#include "commands/cmd_connect.h" +#include "commands/cmd_die.h" +#include "commands/cmd_eline.h" +#include "commands/cmd_gline.h" +#include "commands/cmd_info.h" +#include "commands/cmd_invite.h" +#include "commands/cmd_ison.h" +#include "commands/cmd_join.h" +#include "commands/cmd_kick.h" +#include "commands/cmd_kill.h" +#include "commands/cmd_kline.h" +#include "commands/cmd_links.h" +#include "commands/cmd_list.h" +#include "commands/cmd_loadmodule.h" +#include "commands/cmd_lusers.h" +#include "commands/cmd_map.h" +#include "commands/cmd_modules.h" +#include "commands/cmd_motd.h" +#include "commands/cmd_names.h" +#include "commands/cmd_nick.h" +#include "commands/cmd_notice.h" +#include "commands/cmd_oper.h" +#include "commands/cmd_part.h" +#include "commands/cmd_pass.h" +#include "commands/cmd_ping.h" +#include "commands/cmd_pong.h" +#include "commands/cmd_privmsg.h" +#include "commands/cmd_qline.h" +#include "commands/cmd_quit.h" +#include "commands/cmd_rehash.h" +#include "commands/cmd_restart.h" +#include "commands/cmd_rules.h" +#include "commands/cmd_server.h" +#include "commands/cmd_squit.h" +#include "commands/cmd_stats.h" +#include "commands/cmd_summon.h" +#include "commands/cmd_time.h" +#include "commands/cmd_topic.h" +#include "commands/cmd_trace.h" +#include "commands/cmd_unloadmodule.h" +#include "commands/cmd_user.h" +#include "commands/cmd_userhost.h" +#include "commands/cmd_users.h" +#include "commands/cmd_version.h" +#include "commands/cmd_wallops.h" +#include "commands/cmd_who.h" +#include "commands/cmd_whois.h" +#include "commands/cmd_whowas.h" +#include "commands/cmd_zline.h" #endif 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: + * + * + * + * 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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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: + * + * + * + * 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 +#include +#include +#include +#include +#include +#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 -- cgit v1.2.3