I get, 'msg, insufficient parameters' with this script

Code:
alias rara {  
  while (%i <= $nick(#dark-klix,0)) {  
    msg $chan !getlink $nick(#dark-klix,%i) 
    /timer 1 2 /rara
    inc %i  
    halt
  }  
  else { 
    %i = 1
    halt
  }   
}


when I change msg to echo, I get
'msg, insufficient parameters'

When I try it on a clean IRC client it works...


What can be the problem?


---
signatures own