Code:
  var %i = 1
  while ($gettok(%unbannick,%i,44) != $null) {
    set %otherunban $remtok(%globalunbannick,$v1,1,44)
    inc %i
  }
  /echo $chan %unbannick
  /echo $chan %globalunbannick
  /echo $chan %otherunban


%globalunbannick is still the same as %otherunban ..