]> jfr.im git - irc/quakenet/newserv.git/blame - glines/glines.c
NOPERSERV: clarify +h noticeflag help text.
[irc/quakenet/newserv.git] / glines / glines.c
CommitLineData
813c5b73
CP
1#include "../irc/irc.h"
2
3#include "../trusts/trusts.h"
4#include "glines.h"
5
6void 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);
8}
9
10void glinebyhost(char *ident, char *hostname, int duration, char *reason) {
11 /* TODO: resolve trustgroup and trustgline */
12
13 irc_send("%s GL * +%s@%s %d %jd :%s", mynumeric->content, ident, hostname, duration, (intmax_t)getnettime(), reason);
14}
15
16void unglinebyhost(char *ident, char *hostname, int duration, char *reason) {
17 /* TODO: trustungline */
18
19 irc_send("%s GL * -%s@%s %d %jd :%s", mynumeric->content, ident, hostname, duration, (intmax_t)getnettime(), reason);
20}