]>
Commit | Line | Data |
---|---|---|
1 | #include "../irc/irc.h" | |
2 | ||
3 | #include "../trusts/trusts.h" | |
4 | #include "glines.h" | |
5 | ||
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); | |
8 | } | |
9 | ||
10 | void 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 | ||
16 | void 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 | } |