Try the edited code. If it still doesn't work, ensure that you have the unban command for chanserv formatted correctly.