15 static inline unsigned admin(const char *host
)
19 return !strcmp(host
, "equestria") || !strcmp(host
, "roboponies.equ") || !strcmp(host
, "genres.i.dont.even") || strcasestr(host
, owner
);
23 void (*writeline
)(struct bio
*b
, const char *fmt
, ...)
24 __attribute__ ((__format__ (__printf__
, 2, 3)));
25 int (*fill
)(struct bio
*b
);
26 int (*readline
)(struct bio
*b
, char **line
);
27 int (*poll
)(struct bio
*b
, int timeout
);
29 int fd
, maxlen
, len
, ofs
;
34 void init_hook(struct bio
*b
, const char *target
, const char *self
, unsigned ponify
);
36 void privmsg_hook(struct bio
*b
, const char *prefix
, const char *ident
, const char *host
,
37 const char *const *args
, unsigned nargs
);
39 void command_hook(struct bio
*b
, const char *prefix
, const char *ident
, const char *host
,
40 const char *command
, const char *const *args
, unsigned nargs
);