I just don't see why this dont work:

Code:
menu nicklist {
  $iif($hget(pmusers) == $null, PM rights)
  .+ Create access database: hmake -s pmusers 100

  $iif($hget(pmusers) != $null, PM rights)
  .+ $iif($hget(pmusers, $nick) == $null, Give, Remove) {
    if ($hget(pmusers, $nick) == $null) {
      hadd -m pmusers $$1
      .notice $me $$1 has now PM rights.
    }

    else {
      hdel pmusers $$1
      .notice $me Removed PM rights from $$1.
    }
  }
  .-
  .+ Remove access database {
    hfree -sw pmusers
  }
} 


The code:
Code:
.+ $iif($hget(pmusers, $nick) == $null, Give, Remove) {
    if ($hget(pmusers, $nick) == $null) {


What is wrong in that? It creates database good then it shows give option and grants access right, but then it never give Remove option to user that is already in database.

I need some help with this. Whats wrong?