ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/releases/1.0.2/src/opercmd.h
Revision: 5373
Committed: Mon Jan 12 21:20:18 2015 UTC (11 years, 7 months ago) by michael
Content type: text/x-chdr
File size: 1759 byte(s)
Log Message:
RELEASE TAG 1.0.2

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 #include "config.h"
25
26
27 struct OperCommandHash
28 {
29 const char *command;
30 void (*handler)(char *, const struct ChannelConf *);
31 };
32
33 struct Command
34 {
35 /* Points to specific entry in COMMAND_TABLE in opercmd.c */
36 const struct OperCommandHash *tab;
37
38 /* Command parameter.
39 * <erik> but i cant think of any commands bopm will ever have that is
40 * multiple parameters
41 *
42 * I still havn't -Erik 12/11/02
43 */
44 char *param;
45
46 /* Who ordered it. */
47 char *irc_nick;
48
49 /* Where the reply is to be sent. */
50 const struct ChannelConf *target;
51
52 /*
53 * When it was added, because we might need to remove it if it does
54 * not get executed.
55 */
56 time_t added;
57 };
58
59 extern void command_init(void);
60 extern void command_userhost(const char *);
61 extern void command_timer(void);
62 extern void command_parse(char *, const struct ChannelConf *, const struct UserInfo *);
63 #endif

Properties

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