ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/opercmd.h
Revision: 5052
Committed: Mon Dec 22 11:56:03 2014 UTC (11 years, 7 months ago) by michael
Content type: text/x-chdr
File size: 952 byte(s)
Log Message:
- Initial import of bopm 3.1.3

File Contents

# User Rev Content
1 michael 5052 #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    
33     typedef void (*oper_command) (char *, char*, struct ChannelConf *);
34    
35     struct OperCommandHash
36     {
37     char *command;
38     oper_command handler;
39     };
40    
41     extern void command_init(void);
42     extern void command_userhost(char *);
43     extern void command_timer(void);
44     extern void command_parse(char *, char *, struct ChannelConf *,
45     struct UserInfo *);
46     #endif