/[svn]/hopm/trunk/src/opercmd.h
ViewVC logotype

Contents of /hopm/trunk/src/opercmd.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5135 - (show annotations)
Thu Dec 25 18:51:51 2014 UTC (5 years, 5 months ago) by michael
File MIME type: text/x-csrc
File size: 888 byte(s)
- propset svn:eol-style native

1 #ifndef OPERCMD_H
2 #define OPERCMD_H
3
4 #include "config.h"
5
6 struct Command
7 {
8 /* Index of command in COMMAND_TABLE in opercmd.c */
9 unsigned short type;
10
11 /* Command parameter.
12 * <erik> but i cant think of any commands bopm will ever have that is
13 * multiple parameters
14 *
15 * I still havn't -Erik 12/11/02
16 */
17 char *param;
18
19 /* Who ordered it. */
20 char *irc_nick;
21
22 /* Where the reply is to be sent. */
23 struct ChannelConf *target;
24
25 /*
26 * When it was added, because we might need to remove it if it does
27 * not get executed.
28 */
29 time_t added;
30 };
31
32 struct OperCommandHash
33 {
34 const char *command;
35 void (*handler)(char *, char*, struct ChannelConf *);
36 };
37
38 extern void command_init(void);
39 extern void command_userhost(char *);
40 extern void command_timer(void);
41 extern void command_parse(char *, char *, struct ChannelConf *, struct UserInfo *);
42 #endif

Properties

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

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28