Burrito has a valid point with certain restriction to people allowed.
You should make sure if a nickname to be added to the black list is on the channel. People can easily abuse this script by adding bogus nicknames that don't exist. You may also need a trigger flood protection to protect the client running the code from being flooded or spammed.