author | Markus Bröker <mbroeker@largo.dyndns.tv> |
Tue, 23 Feb 2010 11:04:52 +0100 | |
changeset 48 | 34094173351c |
parent 15 | f19c1f9b4cd3 |
child 58 | 500a5ea7fcb8 |
permissions | -rw-r--r-- |
0 | 1 |
/** |
2 |
* $Id: irc.h 51 2008-01-10 00:19:39Z mbroeker $ |
|
3 |
* $URL: http://localhost/svn/c/mcbot/trunk/include/irc.h $ |
|
4 |
* |
|
5 |
*/ |
|
6 |
||
7 |
#ifndef IRC_H |
|
8 |
#define IRC_H |
|
9 |
||
10 |
#define IRC_GENERAL_ERROR -50 |
|
11 |
#define IRC_LOGIN_ERROR -51 |
|
12 |
#define IRC_CONNECT_ERROR -52 |
|
13 |
||
14 |
struct Message { |
|
15 |
FILE *stream; |
|
16 |
char *nick; |
|
17 |
char *user; |
|
48
34094173351c
message.email renamed to message.domain
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
15
diff
changeset
|
18 |
char *domain; |
0 | 19 |
char *command; |
20 |
char *channel; |
|
21 |
char *line; |
|
15
f19c1f9b4cd3
ChangeLog mcbot-0.95-1
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
9
diff
changeset
|
22 |
char current_channel[41]; |
0 | 23 |
}; |
24 |
||
25 |
typedef struct Message MSG; |
|
26 |
||
27 |
FILE *irc_connect (char *, unsigned int); |
|
6
7eb12be31bb5
Various Bug Fixes including
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
0
diff
changeset
|
28 |
int irc_login (FILE *, char *, char *, char *); |
0 | 29 |
char *irc_parsemessage (const char *, MSG *); |
30 |
#endif |