Alias channel.nicknames {
  set %i 1
  : one
  if ($nick(%custom.channel.join.alt,%i,o) != $null) { aline -l 2 %custom.channel.join $nick(%custom.channel.join.alt,%i,o) }
  else { set %i 1 | goto two }
  inc %i
  goto one
  :two
  if ($nick(%custom.channel.join.alt,%i,v) != $null) { aline -l 10 %custom.channel.join $nick(%custom.channel.join.alt,%i,v) }
  else { set %i 1 | goto three }
  inc %i
  goto two
  :three
  if ($nick(%custom.channel.join.alt,%i,r) != $null) { aline -l 1 %custom.channel.join $nick(%custom.channel.join.alt,%i,r) }
  else { set %i 1 | goto end }
  inc %i
  goto three
  :end
}
%custom.channel.join.alt = channel name (#BOR)
%custom.channel.join = custom window name (@BOR)
Why doesnt this work?!
And another question: How can you make a popup menu in all custom windows, and not just in one?