on *:TEXT:!quote:#:get_quote $chan
alias $deletedmark return asdf1234,,
alias get_quote {
;as long as the quote we got is the deleted mark, we keep that loop running evaluating $findquote again to find a new quote, the body of the loop itself doesn't need to do anything
while ($findquote($1) == $deletedmark) noop
msg $1 $v1
}
alias findquote {
var %file $+(F:\mIRC\quotes\quotes,$1,.ini)
return $readini(%file, n, #, $rand(1, $calc($lines(%file) - 2)))
}