hello all.
I've searched for $replace first, but did'nt found a answer for my question, so here goes.

in a textline i have this: wow, there goes kname
before sending this line to the channel it must replace kname with $knick
i have this sofar.

Code:
on 1:kick:#: {
  if (%kickrea == ON) { 
    set %nikaction $read($mircdirtxtfiles\kickreacties.txt)
    $replace(%nikaction, kname, $knick)
    $replace(%nikaction, sname, $nick) 
    /msg $chan 12 %nikaction
  }
}


however this shows kname instead of $knick

what do i wrong confused
Aaron