177 |
/* Only report it if no other scans have found positives yet. */ |
/* Only report it if no other scans have found positives yet. */ |
178 |
scan_positive(ss, (bl->kline[0] ? bl->kline : IRCItem->kline), text_type); |
scan_positive(ss, (bl->kline[0] ? bl->kline : IRCItem->kline), text_type); |
179 |
|
|
180 |
irc_send_channels("DNSBL -> %s!%s@%s appears in BL zone %s (%s)", |
irc_send_channels("DNSBL -> %s!%s@%s [%s] appears in BL zone %s (%s)", |
181 |
ss->irc_nick, ss->irc_username, ss->irc_hostname, bl->name, |
ss->irc_nick, ss->irc_username, ss->irc_hostname, ss->ip, bl->name, |
182 |
text_type); |
text_type); |
183 |
log_printf("DNSBL -> %s!%s@%s appears in BL zone %s (%s)", |
log_printf("DNSBL -> %s!%s@%s [%s] appears in BL zone %s (%s)", |
184 |
ss->irc_nick, ss->irc_username, ss->irc_hostname, bl->name, |
ss->irc_nick, ss->irc_username, ss->irc_hostname,ss->ip, bl->name, |
185 |
text_type); |
text_type); |
186 |
} |
} |
187 |
|
|
221 |
{ |
{ |
222 |
if (ds->ss->manual_target) |
if (ds->ss->manual_target) |
223 |
irc_send("PRIVMSG %s :CHECK -> DNSBL -> %s does not appear in BL zone %s", |
irc_send("PRIVMSG %s :CHECK -> DNSBL -> %s does not appear in BL zone %s", |
224 |
ds->ss->manual_target->name, ds->ss->ip, |
ds->ss->manual_target->name, ds->ss->ip, ds->bl->name); |
|
(strlen(ds->ss->ip) < strlen(res->lookup)) ? (res->lookup + strlen(ds->ss->ip) + 1) : res->lookup); |
|
225 |
|
|
226 |
--ds->ss->scans; /* We are done with ss here */ |
--ds->ss->scans; /* We are done with ss here */ |
227 |
scan_checkfinished(ds->ss); /* This could free ss, don't use ss after this point */ |
scan_checkfinished(ds->ss); /* This could free ss, don't use ss after this point */ |