you can make the kickban line like this for the on join
ban -k $chan $nick 4 Black-Listed!
same thing for setting the nick to the black list
ban -k $active $2 4 Black-Listed!
also instead of setting just the nick have it set the addy to the txt file just so say the ban was taken off by someone else or cleared when no one is in the room and the person joins back under a diff nick.