You are usiing a valid entry for $1, I hope. If not, then that might be your problem.

Since you've done such a good job on this, I'm going to presume that you know it has to go in the Aliases section as is, or Remotes changing /allchans { to alias allchans {