38f191c997
Here you have it.
29 lines
458 B
C
29 lines
458 B
C
#ifndef DATA_H
|
|
#define DATA_H
|
|
|
|
#include <sqlite3.h>
|
|
#include <libircclient.h>
|
|
|
|
/*
|
|
* We store data in IRC session context.
|
|
*/
|
|
struct irc_ctx_t {
|
|
unsigned short port;
|
|
char *channel;
|
|
char *nick;
|
|
char *server;
|
|
sqlite3 * db;
|
|
};
|
|
|
|
/*
|
|
* Params that we give to our threads.
|
|
*/
|
|
struct spam_params_t {
|
|
irc_session_t *session;
|
|
const char *phrase;
|
|
const char *channel;
|
|
float timer;
|
|
};
|
|
|
|
#endif /* DATA_H */
|