ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/opercmd.h
Revision: 5091
Committed: Tue Dec 23 19:59:18 2014 UTC (10 years, 8 months ago) by michael
Content type: text/x-chdr
File size: 914 byte(s)
Log Message:
- Removed pointless casts

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     struct OperCommandHash
33     {
34 michael 5072 const char *command;
35 michael 5091 void (*handler)(char *, char*, struct ChannelConf *);
36 michael 5052 };
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 *,
42     struct UserInfo *);
43     #endif