32 lines
476 B
C
32 lines
476 B
C
/*
|
|
* xbot: Just another IRC bot
|
|
*
|
|
* Written by Aaron Blakely <aaron@ephasic.org>
|
|
**/
|
|
|
|
#ifndef IRC_H
|
|
#define IRC_H
|
|
|
|
#include <stdio.h>
|
|
|
|
struct irc_conn
|
|
{
|
|
FILE *srv_fd;
|
|
|
|
char nick[32];
|
|
char *host;
|
|
char *port;
|
|
char *real_name;
|
|
|
|
// I/O Buffers
|
|
char out[4096];
|
|
char in[4096];
|
|
|
|
};
|
|
|
|
void irc_connect(struct irc_conn *bot);
|
|
void irc_auth(struct irc_conn *bot);
|
|
void irc_raw(struct irc_conn *bot, char *fmt, ...);
|
|
void irc_parse_raw(struct irc_conn *bot, char *raw);
|
|
|
|
#endif |