]>
Commit | Line | Data |
---|---|---|
813c5b73 | 1 | #include "../irc/irc.h" |
9b78b212 | 2 | |
813c5b73 CP |
3 | #include "../trusts/trusts.h" |
4 | #include "glines.h" | |
5 | ||
9b78b212 | 6 | void glinebynick(nick *np, int duration, char *reason) { |
813c5b73 CP |
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 | ||
9b78b212 GB |
10 | void glinebyhost(char *ident, char *hostname, int duration, char *reason) { |
11 | /* TODO: resolve trustgroup and trustgline */ | |
813c5b73 CP |
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) { | |
9b78b212 GB |
17 | /* TODO: trustungline */ |
18 | ||
813c5b73 CP |
19 | irc_send("%s GL * -%s@%s %d %jd :%s", mynumeric->content, ident, hostname, duration, (intmax_t)getnettime(), reason); |
20 | } |