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 |
* +------------------------------------+
*
* Inspire is copyright (C) 2002-2005 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"
char* CleanFilename(char* name);
bool is_uline(const char* server);
long duration(const char* str);
void do_whois(userrec* user, userrec* dest,unsigned long signon, unsigned long idle, char* nick);
bool host_matches_everyone(std::string mask, userrec* user);
bool ip_matches_everyone(std::string ip, userrec* user);
bool nick_matches_everyone(std::string nick, userrec* user);
int operstrcmp(char* data,char* input);
/* 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 "cmd_admin.h"
#include "cmd_away.h"
#include "cmd_commands.h"
#include "cmd_connect.h"
#include "cmd_die.h"
#include "cmd_eline.h"
#include "cmd_gline.h"
#include "cmd_info.h"
#include "cmd_invite.h"
#include "cmd_ison.h"
#include "cmd_join.h"
#include "cmd_kick.h"
#include "cmd_kill.h"
#include "cmd_kline.h"
#include "cmd_links.h"
#include "cmd_list.h"
#include "cmd_loadmodule.h"
#include "cmd_lusers.h"
#include "cmd_map.h"
#include "cmd_modules.h"
#include "cmd_motd.h"
#include "cmd_names.h"
#include "cmd_nick.h"
#include "cmd_notice.h"
#include "cmd_oper.h"
#include "cmd_part.h"
#include "cmd_pass.h"
#include "cmd_ping.h"
#include "cmd_pong.h"
#include "cmd_privmsg.h"
#include "cmd_qline.h"
#include "cmd_quit.h"
#include "cmd_rehash.h"
#include "cmd_restart.h"
#include "cmd_rules.h"
#include "cmd_server.h"
#include "cmd_squit.h"
#include "cmd_stats.h"
#include "cmd_summon.h"
#include "cmd_time.h"
#include "cmd_topic.h"
#include "cmd_trace.h"
#include "cmd_unloadmodule.h"
#include "cmd_user.h"
#include "cmd_userhost.h"
#include "cmd_users.h"
#include "cmd_version.h"
#include "cmd_wallops.h"
#include "cmd_who.h"
#include "cmd_whois.h"
#include "cmd_whowas.h"
#include "cmd_zline.h"
#endif
|