make sure we broadcast a message when we kill, even if not in verbose mode

This commit is contained in:
Fish 2005-10-19 08:13:13 +00:00
parent 32e83fc46b
commit 889f4ba46c
2 changed files with 5 additions and 4 deletions

View file

@ -1,6 +1,7 @@
Black List Scanning Bot Module for NeoStats Changelog.
==============================================================================
3.0.a3-dev - Fish (F) & Mark (M)
- Make sure we broadcast a message when we akill even if not in verbose (F)
- AKILL support (F)
- Reorder add command so name works. (M)
- Simplify command paths. (M)

2
blsb.c
View file

@ -180,7 +180,6 @@ void dnsbl_callback(void *data, adns_answer *a)
} if (a->type == adns_r_txt) {
show = a->rrs.manyistr[i]->str;
}
if (blsb.verbose)
irc_chanalert( blsb_bot, "%s (%s) exists in %s blacklist: %s", sc->user->name, sc->ip, sc->domain->name, show );
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);
@ -190,6 +189,7 @@ void dnsbl_callback(void *data, adns_answer *a)
irc_prefmsg(blsb_bot, sc->user, "Your Host is listed as a inscure host at %s: %s", sc->domain->name, show);
if (blsb.doakill) {
irc_akill (blsb_bot, sc->ip, "*", blsb.akilltime, "Your Host is listed as a insecure host at %s: %s", sc->domain->name, show);
irc_chanalert( blsb_bot, "Akilling %s!%s@%s", sc->user->name, sc->user->user->username, sc->user->user->hostname);
}
}
if (a->type == adns_r_a) ns_free(show);