]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/commands.h
Add userrec::HasMode, fix some typos.
[user/henk/code/inspircd.git] / include / commands.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
6  *                       E-mail:
7  *                <brain@chatspike.net>
8  *                <Craig@chatspike.net>
9  *     
10  * Written by Craig Edwards, Craig McLure, and others.
11  * This program is free but copyrighted software; see
12  *            the file COPYING for details.
13  *
14  * ---------------------------------------------------
15  */
16
17 #ifndef __COMMANDS_H
18 #define __COMMANDS_H
19
20 // include the common header files
21
22 #include <typeinfo>
23 #include <iostream>
24 #include <string>
25 #include <deque>
26 #include <sstream>
27 #include <vector>
28 #include "users.h"
29 #include "channels.h"
30
31 bool is_uline(const char* server);
32 long duration(const char* str);
33 bool host_matches_everyone(const std::string &mask, userrec* user);
34 bool ip_matches_everyone(const std::string &ip, userrec* user);
35 bool nick_matches_everyone(const std::string &nick, userrec* user);     
36 int operstrcmp(char* data,char* input);
37 void split_chlist(userrec* user, userrec* dest, const std::string &cl);
38
39 /*       XXX Serious WTFness XXX
40  *
41  * Well, unless someone invents a wildcard or
42  * regexp #include, and makes it a standard,
43  * we're stuck with this way of including all
44  * the commands.
45  */
46
47 #include "commands/cmd_admin.h"
48 #include "commands/cmd_away.h"
49 #include "commands/cmd_commands.h"
50 #include "commands/cmd_connect.h"
51 #include "commands/cmd_die.h"
52 #include "commands/cmd_eline.h"
53 #include "commands/cmd_gline.h"
54 #include "commands/cmd_info.h"
55 #include "commands/cmd_invite.h"
56 #include "commands/cmd_ison.h"
57 #include "commands/cmd_join.h"
58 #include "commands/cmd_kick.h"
59 #include "commands/cmd_kill.h"
60 #include "commands/cmd_kline.h"
61 #include "commands/cmd_links.h"
62 #include "commands/cmd_list.h"
63 #include "commands/cmd_loadmodule.h"
64 #include "commands/cmd_lusers.h"
65 #include "commands/cmd_map.h"
66 #include "commands/cmd_modules.h"
67 #include "commands/cmd_motd.h"
68 #include "commands/cmd_names.h"
69 #include "commands/cmd_nick.h"
70 #include "commands/cmd_notice.h"
71 #include "commands/cmd_oper.h"
72 #include "commands/cmd_part.h"
73 #include "commands/cmd_pass.h"
74 #include "commands/cmd_ping.h"
75 #include "commands/cmd_pong.h"
76 #include "commands/cmd_privmsg.h"
77 #include "commands/cmd_qline.h"
78 #include "commands/cmd_quit.h"
79 #include "commands/cmd_rehash.h"
80 #include "commands/cmd_restart.h"
81 #include "commands/cmd_rules.h"
82 #include "commands/cmd_server.h"
83 #include "commands/cmd_squit.h"
84 #include "commands/cmd_stats.h"
85 #include "commands/cmd_summon.h"
86 #include "commands/cmd_time.h"
87 #include "commands/cmd_topic.h"
88 #include "commands/cmd_trace.h"
89 #include "commands/cmd_unloadmodule.h"
90 #include "commands/cmd_user.h"
91 #include "commands/cmd_userhost.h"
92 #include "commands/cmd_users.h"
93 #include "commands/cmd_version.h"
94 #include "commands/cmd_wallops.h"
95 #include "commands/cmd_who.h"
96 #include "commands/cmd_whois.h"
97 #include "commands/cmd_whowas.h"
98 #include "commands/cmd_zline.h"
99
100
101 #endif