20 lines
912 B
C
20 lines
912 B
C
#ifndef RETROIRC_H
|
|
#define RETROIRC_H
|
|
#define IRC_TABS 12
|
|
#define IRC_LINES 256
|
|
#define IRC_TEXT 512
|
|
#define IRC_USERS 256
|
|
struct ChatLine {char text[IRC_TEXT];unsigned char kind;};
|
|
struct Chat {char name[64],topic[256];struct ChatLine line[IRC_LINES];int start,count,unread,scroll,joined,naming;char users[IRC_USERS][64];int nusers;char draft[480];};
|
|
struct IRC {struct Chat tab[IRC_TABS];int ntabs,active,ready,changed,alert,overflow;char nick[64],input[2048];int inlen,dropping;char casemap[16];void(*send)(const char*);};
|
|
void irc_init(struct IRC*,const char*,void(*)(const char*));
|
|
void irc_feed(struct IRC*,const char*,int);
|
|
void irc_line(struct IRC*,char*);
|
|
void irc_say(struct IRC*,int,int,const char*);
|
|
int irc_tab(struct IRC*,const char*,int);
|
|
int irc_equal(const char*,const char*);
|
|
void irc_command(struct IRC*,char*);
|
|
void irc_names(struct Chat*,const char*,int);
|
|
void irc_lost(struct IRC*);
|
|
#endif
|