fix NOBAN check when adding blacklist

This commit is contained in:
DNB 2005-12-15 08:14:46 +00:00
parent 83d77cf6ca
commit 96ba126aa0
2 changed files with 5 additions and 2 deletions

View file

@ -1,6 +1,9 @@
Black List Scanning Bot Module for NeoStats Changelog.
Fish (F) & Mark (M) & DeadNotBuried (D)
==============================================================================
3.0.a3 - Fish (F) & Mark (M) & DeadNotBuried (D)
3.0.b1
- Fix check for NOBAN on add (D)
3.0.a3
- Add support for lookup lists only without banning (D)
- Make sure we broadcast a message when we akill even if not in verbose (F)
- AKILL support (F)

2
blsb.c
View file

@ -342,7 +342,7 @@ int blsb_cmd_add( const CmdParams *cmdparams )
}
lnode = list_next(blsb.domains, lnode);
}
dl = new_bldomain( cmdparams->av[2], cmdparams->av[0], type, msg , ircstrcasecmp( cmdparams->av[3], "NOBAN" ) ? 1 : 0);
dl = new_bldomain( cmdparams->av[2], cmdparams->av[0], type, msg , ircstrcasecmp( cmdparams->av[3], "NOBAN" ) ? 0 : 1);
irc_prefmsg( blsb_bot, cmdparams->source, "Added domain %s (%s) as type %d", dl->name, dl->domain, dl->type );
CommandReport( blsb_bot, "%s added domain %s (%s) as type %d", cmdparams->source->name, dl->name, dl->domain, dl->type );
return NS_SUCCESS;