X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Fcommands.h;h=24fad4b3c125010f369d33b5de09477313d81dc7;hb=ea3ba4bfd1b072b4f14fb588286eedd0ea8c1d22;hp=a9046d4d12fd4d50b936e253ba7d9c8ae5c2dfb6;hpb=443016b4f2fccca39755c1d7e33edfe1ec61718f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/commands.h b/include/commands.h index a9046d4d1..24fad4b3c 100644 --- a/include/commands.h +++ b/include/commands.h @@ -1,3 +1,19 @@ +/* +------------------------------------+ + * | 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 __COMMANDS_H #define __COMMANDS_H @@ -11,85 +27,68 @@ #include #include "users.h" #include "channels.h" +#include "modules.h" - -/** These are the handlers for user commands +/* XXX Serious WTFness XXX + * + * Well, unless someone invents a wildcard or + * regexp #include, and makes it a standard, + * we're stuck with this way of including all + * the commands. */ -void handle_join(char **parameters, int pcnt, userrec *user); -void handle_part(char **parameters, int pcnt, userrec *user); -void handle_kick(char **parameters, int pcnt, userrec *user); -void handle_die(char **parameters, int pcnt, userrec *user); -void handle_restart(char **parameters, int pcnt, userrec *user); -void handle_kill(char **parameters, int pcnt, userrec *user); -void handle_summon(char **parameters, int pcnt, userrec *user); -void handle_users(char **parameters, int pcnt, userrec *user); -void handle_pass(char **parameters, int pcnt, userrec *user); -void handle_invite(char **parameters, int pcnt, userrec *user); -void handle_topic(char **parameters, int pcnt, userrec *user); -void handle_names(char **parameters, int pcnt, userrec *user); -void handle_privmsg(char **parameters, int pcnt, userrec *user); -void handle_notice(char **parameters, int pcnt, userrec *user); -void handle_info(char **parameters, int pcnt, userrec *user); -void handle_time(char **parameters, int pcnt, userrec *user); -void handle_whois(char **parameters, int pcnt, userrec *user); -void handle_quit(char **parameters, int pcnt, userrec *user); -void handle_who(char **parameters, int pcnt, userrec *user); -void handle_wallops(char **parameters, int pcnt, userrec *user); -void handle_list(char **parameters, int pcnt, userrec *user); -void handle_rehash(char **parameters, int pcnt, userrec *user); -void handle_lusers(char **parameters, int pcnt, userrec *user); -void handle_admin(char **parameters, int pcnt, userrec *user); -void handle_ping(char **parameters, int pcnt, userrec *user); -void handle_pong(char **parameters, int pcnt, userrec *user); -void handle_motd(char **parameters, int pcnt, userrec *user); -void handle_rules(char **parameters, int pcnt, userrec *user); -void handle_user(char **parameters, int pcnt, userrec *user); -void handle_userhost(char **parameters, int pcnt, userrec *user); -void handle_ison(char **parameters, int pcnt, userrec *user); -void handle_away(char **parameters, int pcnt, userrec *user); -void handle_whowas(char **parameters, int pcnt, userrec *user); -void handle_trace(char **parameters, int pcnt, userrec *user); -void handle_modules(char **parameters, int pcnt, userrec *user); -void handle_stats(char **parameters, int pcnt, userrec *user); -void handle_connect(char **parameters, int pcnt, userrec *user); -void handle_squit(char **parameters, int pcnt, userrec *user); -void handle_links(char **parameters, int pcnt, userrec *user); -void handle_map(char **parameters, int pcnt, userrec *user); -void handle_oper(char **parameters, int pcnt, userrec *user); -void handle_nick(char **parameters, int pcnt, userrec *user); -/** Special functions for processing server to server traffic - */ -void handle_link_packet(char* udp_msg, char* tcp_host, serverrec *serv); -void process_restricted_commands(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host,char* ipaddr,int port); +#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" -/** These are the handlers for server commands (tokens) - */ -void handle_amp(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_dollar(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_J(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_R(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_plus(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_b(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_a(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_F(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_N(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_AT(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_k(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_n(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_Q(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_K(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_L(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_m(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_M(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_T(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_t(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_i(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_P(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); -void handle_V(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host); - -/** Functions for u:lined servers - */ -bool is_uline(const char* server); #endif