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 :)
}
}