ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/irc.h
Revision: 5119
Committed: Thu Dec 25 15:46:29 2014 UTC (11 years, 7 months ago) by michael
Content type: text/x-chdr
File size: 579 byte(s)
Log Message:
- Removed unused NICKMAX definition

File Contents

# User Rev Content
1 michael 5052 #ifndef IRC_H
2     #define IRC_H
3    
4     #include "inet.h"
5    
6     #define MSGLENMAX 512 + 1
7    
8    
9     struct bopm_sockaddr
10     {
11     struct sockaddr_in sa4;
12     };
13    
14    
15     struct bopm_ircaddr
16     {
17     struct in_addr in4;
18     };
19    
20    
21     struct UserInfo
22     {
23     char *irc_nick;
24     char *irc_username;
25     char *irc_hostname;
26     };
27    
28     typedef void (*irc_command) (char **, unsigned int, char *, struct UserInfo *);
29    
30     struct CommandHash
31     {
32 michael 5072 const char *command;
33 michael 5052 irc_command handler;
34     };
35    
36    
37 michael 5072 extern void irc_send(const char *, ...);
38     extern void irc_send_channels(const char *, ...);
39 michael 5052 extern void irc_cycle(void);
40     extern void irc_timer(void);
41     #endif