24 lines
379 B
C
24 lines
379 B
C
#ifndef DATA_H
|
|
#define DATA_H
|
|
|
|
/*
|
|
* We store data in IRC session context.
|
|
*/
|
|
typedef struct {
|
|
char *channel;
|
|
char *nick;
|
|
} 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;
|
|
|
|
#endif /* DATA_H */
|