/[svn]/hopm/branches/1.1.x/src/dnsbl.c
ViewVC logotype

Diff of /hopm/branches/1.1.x/src/dnsbl.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 8117 by michael, Sun Apr 2 18:22:26 2017 UTC revision 8118 by michael, Sun Apr 2 20:27:49 2017 UTC
# Line 177  dnsbl_positive(struct scan_struct *ss, s Line 177  dnsbl_positive(struct scan_struct *ss, s
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    
# Line 221  dnsbl_result(struct firedns_result *res) Line 221  dnsbl_result(struct firedns_result *res)
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 */

Legend:
Removed from v.8117  
changed lines
  Added in v.8118

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28