]>
jfr.im git - irc/quakenet/newserv.git/blob - glines/glines.c
1 #include "../irc/irc.h"
3 #include "../trusts/trusts.h"
6 void glinebynick(nick
*np
, int duration
, char *reason
) {
7 irc_send("%s GL * +%s@%s %d %jd :%s", mynumeric
->content
, istrusted(np
)?np
->ident
:"*", IPtostr(np
->p_ipaddr
), duration
, (intmax_t)getnettime(), reason
);
10 void glinebyhost(char *ident
, char *hostname
, int duration
, char *reason
) {
11 /* TODO: resolve trustgroup and trustgline */
13 irc_send("%s GL * +%s@%s %d %jd :%s", mynumeric
->content
, ident
, hostname
, duration
, (intmax_t)getnettime(), reason
);
16 void unglinebyhost(char *ident
, char *hostname
, int duration
, char *reason
) {
17 /* TODO: trustungline */
19 irc_send("%s GL * -%s@%s %d %jd :%s", mynumeric
->content
, ident
, hostname
, duration
, (intmax_t)getnettime(), reason
);