Code:
  on 1:INPUT:*: {
  if ($1 == wins) msg $active $replace($1,!top10) 
}

Just messin around with the replace command and seems i am stumped... if i remove the replace command it does what i want but it messages the channel with "wins" and then "!top10".
Now when i have the replace command in there i get
* Invalid parameters: $replace (line 6, script1.ini)
in the active channel.
So where am i going wrong with this?