12 #include <openssl/ssl.h>
13 #include <openssl/rand.h>
14 #include <openssl/err.h>
18 #define ALARM_TIME 240
20 static inline unsigned admin(const char *host
)
24 return !strcmp(host
, "equestria") || !strcmp(host
, "friendship.sgu.equ") || !strcmp(host
, "genres.i.dont.even") || strcasestr(host
, owner
);
28 void (*writeline
)(struct bio
*b
, const char *fmt
, ...)
29 __attribute__ ((__format__ (__printf__
, 2, 3)));
30 int (*fill
)(struct bio
*b
);
31 int (*readline
)(struct bio
*b
, char **line
);
32 int (*poll
)(struct bio
*b
, int timeout
);
34 int fd
, maxlen
, len
, ofs
;
39 void init_hook(struct bio
*b
, const char *target
, const char *self
, unsigned ponify
);
41 void privmsg_hook(struct bio
*b
, const char *prefix
, const char *ident
, const char *host
,
42 const char *const *args
, unsigned nargs
);
44 void command_hook(struct bio
*b
, const char *prefix
, const char *ident
, const char *host
,
45 const char *command
, const char *const *args
, unsigned nargs
);