I didn't change the "/slap2" wink

/help $v1
  • $v1 & $v2
    Returns the first and second parameters of an if-then-else comparison.

In this case I compared "if %a == m " so $v1 is %a and $v2 is m
Code:
alias testslap {
  if !$chan { echo -ac info * /slap2: must be on a channel }
  ; ^ moved this and removed duplicate
  if !$hget(slap) { hmake slap | hload slap slap.hsh }
  ; ^ moved this and removed duplicate

  if $chan == #Santharia {
    var %a = $rand(a,m)
    : obtain result of $rand to check if it is "m"
    if %a = m { ta approaches $1 with evil intent }
    ; If it is "m" it calls the ta alias as you requested
    else describe # $hget(slap, $rand(1,9)) $1 $hget(slap,$v1)
    ; if it is not it describes as before
  }
  else {
    describe # $hget(slap, $rand(1,9)) $1 $hget(slap,$rand(a,l))
    ; unchanged except for removal of duplicate/redundant code :)
  }
}