Why not use this:
alias quote {
if ($1 isnum && $read(quotes.txt,$1)) {
msg $iif($active != status window,$active,$chan) Quote number $+($chr(40),$1,$chr(41),:) $v2
}
else {
msg $iif($active != status window,$active,$chan) Total quotes: $lines(quotes.txt)
}
}
alias addquote {
if ($1- && $exists(quotes.txt)) {
write quotes.txt $1-
echo $colour(info) -a Quote added.
msg $iif($active != status window,$target,$chan) Quote $1- added.
}
}
alias delquote {
if ($1 isnum && $read(quotes.txt,$1)) {
write -dl quotes.txt $1
echo $colour(info) -a Quote deleted.
msg $iif($active != status window,$target,$chan) Quote number: $1 deleted.
}
}
And just make a file named quotes.txt in your mircdir. Commands: /delquote (num), /addquote (quote), /quote (num)