ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/releases/1.0.0beta1/src/opercmd.h
Revision: 5134
Committed: Thu Dec 25 18:50:02 2014 UTC (11 years, 7 months ago) by michael
Content type: text/x-chdr
Original Path: hopm/trunk/src/opercmd.h
File size: 888 byte(s)
Log Message:
- propset svn:keywords "Id"

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 michael 5120 /* Index of command in COMMAND_TABLE in opercmd.c */
9     unsigned short type;
10 michael 5052
11 michael 5120 /* 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 michael 5052
19 michael 5120 /* Who ordered it. */
20     char *irc_nick;
21 michael 5052
22 michael 5120 /* Where the reply is to be sent. */
23     struct ChannelConf *target;
24 michael 5052
25 michael 5120 /*
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 michael 5052 };
31    
32     struct OperCommandHash
33     {
34 michael 5120 const char *command;
35     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 michael 5120 extern void command_parse(char *, char *, struct ChannelConf *, struct UserInfo *);
42 michael 5052 #endif

Properties

Name Value
svn:keywords Id