ok thank you and i know this is off topic but im working on a ban script where mods can use the !ban command to add it to the ban list on my bot but this isnt working so i was wondering why it isnt?

Code:
*// BAN LIST //*
on *:text:*!ban*:#troyl:{
  if (($nick isOP #)) {
    msg $chan /ban $2 $3
    /set %banned = $2 
    }
    }
    on *:text:*:#troyl:{
    if ($nick == %banned) msg $chan /ban $nick You have been put on the permanent ban list on TroyBot. A manual unban can not be done. If you have a question regarding why you were banned please contact a moderator.. 
}