]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/commands.h
Multi-prefix FJOIN, and allowing module-defined prefixes across the network
[user/henk/code/inspircd.git] / include / commands.h
index 115705eb5e3bd4057b75be0584e0f6243f1b5c1a..24fad4b3c125010f369d33b5de09477313d81dc7 100644 (file)
@@ -2,7 +2,7 @@
  *       | Inspire Internet Relay Chat Daemon |
  *       +------------------------------------+
  *
- *  Inspire is copyright (C) 2002-2005 ChatSpike-Dev.
+ *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
  *                       E-mail:
  *                <brain@chatspike.net>
  *               <Craig@chatspike.net>
 #include <vector>
 #include "users.h"
 #include "channels.h"
+#include "modules.h"
 
-
-/** These are the handlers for user 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);
-void handle_kline(char **parameters, int pcnt, userrec *user);
-void handle_gline(char **parameters, int pcnt, userrec *user);
-void handle_zline(char **parameters, int pcnt, userrec *user);
-void handle_qline(char **parameters, int pcnt, userrec *user);
-void handle_eline(char **parameters, int pcnt, userrec *user);
-void handle_server(char **parameters, int pcnt, userrec *user);
-void handle_loadmodule(char **parameters, int pcnt, userrec *user);
-void handle_unloadmodule(char **parameters, int pcnt, userrec *user);
-void handle_commands(char **parameters, int pcnt, userrec *user);
-void handle_version(char **parameters, int pcnt, userrec *user);
-
-/** Functions for u:lined servers
+/*       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.
  */
-bool is_uline(const char* server);
 
-/** Other useful functions
- */
-long duration(const char* str);
+#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"
 
-void do_whois(userrec* user, userrec* dest,unsigned long signon, unsigned long idle, char* nick);
 
 #endif