ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/opercmd.h
Revision: 5378
Committed: Sat Jan 17 19:02:17 2015 UTC (11 years, 6 months ago) by michael
Content type: text/x-chdr
File size: 1737 byte(s)
Log Message:
- Removed useless header includes

File Contents

# Content
1 /*
2 * Copyright (c) 2002 Erik Fears
3 * Copyright (c) 2014-2015 ircd-hybrid development team
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
18 * USA
19 */
20
21 #ifndef OPERCMD_H
22 #define OPERCMD_H
23
24 struct OperCommandHash
25 {
26 const char *command;
27 void (*handler)(char *, const struct ChannelConf *);
28 };
29
30 struct Command
31 {
32 /* Points to specific entry in COMMAND_TABLE in opercmd.c */
33 const struct OperCommandHash *tab;
34
35 /* Command parameter.
36 * <erik> but i cant think of any commands bopm will ever have that is
37 * multiple parameters
38 *
39 * I still havn't -Erik 12/11/02
40 */
41 char *param;
42
43 /* Who ordered it. */
44 char *irc_nick;
45
46 /* Where the reply is to be sent. */
47 const struct ChannelConf *target;
48
49 /*
50 * When it was added, because we might need to remove it if it does
51 * not get executed.
52 */
53 time_t added;
54 };
55
56 extern void command_init(void);
57 extern void command_userhost(const char *);
58 extern void command_timer(void);
59 extern void command_parse(char *, const struct ChannelConf *, const struct UserInfo *);
60 #endif

Properties

Name Value
svn:eol-style native
svn:keywords Id