quote-bot/data.h

37 lines
635 B
C

#ifndef DATA_H
#define DATA_H
/*
* We store data in IRC session context.
*/
struct irc_ctx_t {
unsigned short port;
char *channel;
char *nick;
char *server;
};
/*
* Params that we give to our threads.
*/
struct spam_params_t {
irc_session_t *session;
const char *phrase;
const char *channel;
int timer;
int unused;
};
/*
* Eventually I'd like to be able to do insert_struct with filled out info or similar.
*/
struct quote_t {
int rowid;
const char *added_by;
const char *channel;
const char *subject;
const char *words;
};
#endif /* DATA_H */