Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

commands.h

Go to the documentation of this file.
00001 /*       +------------------------------------+
00002  *       | Inspire Internet Relay Chat Daemon |
00003  *       +------------------------------------+
00004  *
00005  *  Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
00006  *                       E-mail:
00007  *                <brain@chatspike.net>
00008  *                <Craig@chatspike.net>
00009  *     
00010  * Written by Craig Edwards, Craig McLure, and others.
00011  * This program is free but copyrighted software; see
00012  *            the file COPYING for details.
00013  *
00014  * ---------------------------------------------------
00015  */
00016 
00017 #ifndef __COMMANDS_H
00018 #define __COMMANDS_H
00019 
00020 // include the common header files
00021 
00022 #include <typeinfo>
00023 #include <iostream>
00024 #include <string>
00025 #include <deque>
00026 #include <sstream>
00027 #include <vector>
00028 #include "users.h"
00029 #include "channels.h"
00030 
00031 
00034 void handle_join(char **parameters, int pcnt, userrec *user);
00035 void handle_part(char **parameters, int pcnt, userrec *user);
00036 void handle_kick(char **parameters, int pcnt, userrec *user);
00037 void handle_die(char **parameters, int pcnt, userrec *user);
00038 void handle_restart(char **parameters, int pcnt, userrec *user);
00039 void handle_kill(char **parameters, int pcnt, userrec *user);
00040 void handle_summon(char **parameters, int pcnt, userrec *user);
00041 void handle_users(char **parameters, int pcnt, userrec *user);
00042 void handle_pass(char **parameters, int pcnt, userrec *user);
00043 void handle_invite(char **parameters, int pcnt, userrec *user);
00044 void handle_topic(char **parameters, int pcnt, userrec *user);
00045 void handle_names(char **parameters, int pcnt, userrec *user);
00046 void handle_privmsg(char **parameters, int pcnt, userrec *user);
00047 void handle_notice(char **parameters, int pcnt, userrec *user);
00048 void handle_info(char **parameters, int pcnt, userrec *user);
00049 void handle_time(char **parameters, int pcnt, userrec *user);
00050 void handle_whois(char **parameters, int pcnt, userrec *user);
00051 void handle_quit(char **parameters, int pcnt, userrec *user);
00052 void handle_who(char **parameters, int pcnt, userrec *user);
00053 void handle_wallops(char **parameters, int pcnt, userrec *user);
00054 void handle_list(char **parameters, int pcnt, userrec *user);
00055 void handle_rehash(char **parameters, int pcnt, userrec *user);
00056 void handle_lusers(char **parameters, int pcnt, userrec *user);
00057 void handle_admin(char **parameters, int pcnt, userrec *user);
00058 void handle_ping(char **parameters, int pcnt, userrec *user);
00059 void handle_pong(char **parameters, int pcnt, userrec *user);
00060 void handle_motd(char **parameters, int pcnt, userrec *user);
00061 void handle_rules(char **parameters, int pcnt, userrec *user);
00062 void handle_user(char **parameters, int pcnt, userrec *user);
00063 void handle_userhost(char **parameters, int pcnt, userrec *user);
00064 void handle_ison(char **parameters, int pcnt, userrec *user);
00065 void handle_away(char **parameters, int pcnt, userrec *user);
00066 void handle_whowas(char **parameters, int pcnt, userrec *user);
00067 void handle_trace(char **parameters, int pcnt, userrec *user);
00068 void handle_modules(char **parameters, int pcnt, userrec *user);
00069 void handle_stats(char **parameters, int pcnt, userrec *user);
00070 void handle_connect(char **parameters, int pcnt, userrec *user);
00071 void handle_squit(char **parameters, int pcnt, userrec *user);
00072 void handle_links(char **parameters, int pcnt, userrec *user);
00073 void handle_map(char **parameters, int pcnt, userrec *user);
00074 void handle_oper(char **parameters, int pcnt, userrec *user);
00075 void handle_nick(char **parameters, int pcnt, userrec *user);
00076 void handle_kline(char **parameters, int pcnt, userrec *user);
00077 void handle_gline(char **parameters, int pcnt, userrec *user);
00078 void handle_zline(char **parameters, int pcnt, userrec *user);
00079 void handle_qline(char **parameters, int pcnt, userrec *user);
00080 void handle_eline(char **parameters, int pcnt, userrec *user);
00081 void handle_server(char **parameters, int pcnt, userrec *user);
00082 void handle_loadmodule(char **parameters, int pcnt, userrec *user);
00083 void handle_unloadmodule(char **parameters, int pcnt, userrec *user);
00084 
00087 void handle_link_packet(char* tcp_msg, char* tcp_host, serverrec *serv);
00088 void process_restricted_commands(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host,char* ipaddr,int port);
00089 
00092 void handle_amp(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00093 void handle_dollar(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00094 void handle_J(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00095 void handle_R(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00096 void handle_plus(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00097 void handle_b(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00098 void handle_a(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00099 void handle_F(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00100 void handle_N(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00101 void handle_AT(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00102 void handle_k(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00103 void handle_n(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00104 void handle_Q(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00105 void handle_K(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00106 void handle_L(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00107 void handle_m(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00108 void handle_M(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00109 void handle_T(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00110 void handle_t(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00111 void handle_i(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00112 void handle_P(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00113 void handle_V(char token,char* params,serverrec* source,serverrec* reply, char* tcp_host);
00114 
00117 bool is_uline(const char* server);
00118 
00121 long duration(const char* str);
00122 
00123 #endif

Generated on Fri May 13 01:58:42 2005 for InspIRCd by doxygen 1.3.3