add (NOBAN) to alerts when a lookup only blacklist returns a positive match
This commit is contained in:
parent
3e846808ba
commit
39eb6600df
1 changed files with 2 additions and 2 deletions
4
blsb.c
4
blsb.c
|
@ -188,9 +188,9 @@ static void dnsbl_callback(void *data, adns_answer *a)
|
|||
} if (a->type == adns_r_txt) {
|
||||
show = a->rrs.manyistr[i]->str;
|
||||
}
|
||||
irc_chanalert( blsb_bot, "%s (%s) exists in %s blacklist: %s", sc->user->name, sc->ip, sc->domain->name, show );
|
||||
irc_chanalert( blsb_bot, "%s (%s) exists in %s blacklist: %s %s", sc->user->name, sc->ip, sc->domain->name, show, sc->domain->noban ? "(NOBAN)" : "" );
|
||||
if (sc->check)
|
||||
irc_prefmsg(blsb_bot, sc->check, "%s (%s) exists in %s blacklist: %s", sc->user->name, sc->ip, sc->domain->name, show);
|
||||
irc_prefmsg(blsb_bot, sc->check, "%s (%s) exists in %s blacklist: %s %s", sc->user->name, sc->ip, sc->domain->name, show, sc->domain->noban ? "(NOBAN)" : "" );
|
||||
if (sc->banned == 0 && sc->user && !sc->domain->noban) {
|
||||
sc->banned = 1;
|
||||
/* only ban/msg the user once */
|
||||
|
|
Reference in a new issue