xbot/lib/irc.h

37 lines
634 B
C
Raw Normal View History

2015-03-24 03:12:35 -07:00
/*
* 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;
2015-04-18 08:51:15 -07:00
2015-03-24 03:12:35 -07:00
char nick[32];
2015-03-24 10:48:11 -07:00
char *admin;
2015-04-07 11:18:24 -07:00
char host[256];
char port[5];
char real_name[512];
2015-03-24 03:12:35 -07:00
// I/O Buffers
char out[4096];
char in[4096];
};
void irc_connect(struct irc_conn *bot);
void irc_auth(struct irc_conn *bot);
2015-03-26 16:20:59 -07:00
void irc_notice(struct irc_conn *bot, char *to, char *fmt, ...);
void irc_privmsg(struct irc_conn *bot, char *to, char *fmt, ...);
2015-03-24 03:12:35 -07:00
void irc_raw(struct irc_conn *bot, char *fmt, ...);
void irc_parse_raw(struct irc_conn *bot, char *raw);
#endif