2021-03-08 23:16:14 -05:00
|
|
|
#ifndef DATA_H
|
|
|
|
#define DATA_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* We store data in IRC session context.
|
|
|
|
*/
|
2021-03-11 17:23:43 -05:00
|
|
|
struct irc_ctx_t {
|
|
|
|
unsigned short port;
|
2021-03-08 23:16:14 -05:00
|
|
|
char *channel;
|
|
|
|
char *nick;
|
2021-03-11 12:48:15 -05:00
|
|
|
char *server;
|
2021-03-11 17:23:43 -05:00
|
|
|
};
|
2021-03-08 23:16:14 -05:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Params that we give to our threads.
|
|
|
|
*/
|
2021-03-11 17:23:43 -05:00
|
|
|
struct spam_params_t {
|
2021-03-08 23:16:14 -05:00
|
|
|
irc_session_t *session;
|
|
|
|
const char *phrase;
|
|
|
|
const char *channel;
|
|
|
|
int timer;
|
|
|
|
int unused;
|
2021-03-11 17:23:43 -05:00
|
|
|
};
|
2021-03-08 23:16:14 -05:00
|
|
|
|
2021-03-11 12:48:15 -05:00
|
|
|
/*
|
|
|
|
* Eventually I'd like to be able to do insert_struct with filled out info or similar.
|
|
|
|
*/
|
2021-03-11 17:23:43 -05:00
|
|
|
struct quote_t {
|
2021-03-11 12:48:15 -05:00
|
|
|
int rowid;
|
|
|
|
const char *added_by;
|
|
|
|
const char *channel;
|
|
|
|
const char *subject;
|
|
|
|
const char *words;
|
2021-03-11 17:23:43 -05:00
|
|
|
};
|
2021-03-11 12:48:15 -05:00
|
|
|
|
2021-03-08 23:16:14 -05:00
|
|
|
#endif /* DATA_H */
|