summaryrefslogtreecommitdiff
path: root/include/commands.h
blob: 0a2e9fbd7a7f0e269fa6b71d7b7479213bef3755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*       +------------------------------------+
 *       | Inspire Internet Relay Chat Daemon |
 *       +------------------------------------+
 *
 *  InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
 *                       E-mail:
 *                <brain@chatspike.net>
 *           	  <Craig@chatspike.net>
 *     
 * 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

// include the common header files

#include <typeinfo>
#include <iostream>
#include <string>
#include <deque>
#include <sstream>
#include <vector>
#include "users.h"
#include "channels.h"
#include "modules.h"

bool is_uline(const char* server);
long duration(const char* str);
bool host_matches_everyone(const std::string &mask, userrec* user);
bool ip_matches_everyone(const std::string &ip, userrec* user);
bool nick_matches_everyone(const std::string &nick, userrec* user);	
int operstrcmp(const char* data,const char* input);
void split_chlist(userrec* user, userrec* dest, const std::string &cl);

/*       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.
 */

#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