Look for:
if ($lines(quotes.txt) < $2) { msg %who Quote # $+ $2 doesn't exist. | return }
msg %who $read(quotes.txt,$2)
Put that in an ELSE statement:
else {
if ($lines(quotes.txt) < $2) { msg %who Quote # $+ $2 doesn't exist. | return }
msg %who $read(quotes.txt,$2)
}
The way you have it, that IF will be wrong if $2 isn't a number, so you don't want it to happen if you searched for a word.
I must be doing it wrong...
18:39:27 <Curious> Matches for life --> 14,78,91,137,138,184,191,194,197,200,205
18:39:27 <Curious> Quote #narkotikalife doesn't exist.
18:39:27 <Curious> !quote life
Could you quote the whole script as you fixed it?
So I can just replace the whole thing?
My bad again, I think.. Thanks for fixing!