2021-03-08 23:16:14 -05:00
|
|
|
#ifndef DATA_H
|
|
|
|
#define DATA_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* We store data in IRC session context.
|
|
|
|
*/
|
|
|
|
typedef struct {
|
|
|
|
char *channel;
|
|
|
|
char *nick;
|
2021-03-11 12:48:15 -05:00
|
|
|
char *server;
|
2021-03-08 23:16:14 -05:00
|
|
|
} irc_ctx_t;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Params that we give to our threads.
|
|
|
|
*/
|
|
|
|
typedef struct {
|
|
|
|
irc_session_t *session;
|
|
|
|
const char *phrase;
|
|
|
|
const char *channel;
|
|
|
|
int timer;
|
|
|
|
int unused;
|
|
|
|
} spam_params_t;
|
|
|
|
|
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.
|
|
|
|
*/
|
|
|
|
typedef struct {
|
|
|
|
int rowid;
|
|
|
|
const char *added_by;
|
|
|
|
const char *channel;
|
|
|
|
const char *subject;
|
|
|
|
const char *words;
|
|
|
|
} quote_t;
|
|
|
|
|
2021-03-08 23:16:14 -05:00
|
|
|
#endif /* DATA_H */
|