on *:TEXT:*:#: {
if ($1 == !quote) {
if ($lines(quotes.txt) == 0) { msg $chan 2[ARES] There currently are 0 quotes in the database. | halt }
if ($2 == $null) { msg $chan 2[ARES] Random Quote: $read(quotes.txt) | halt }
if ($2 > %quotenumber) { notice $nick You have entered an invalid quote number. Please enter a number from 1 to %quotenumber $+ . | halt }
msg $chan 2[ARES] Quote $2 : $read(quotes.txt,s,$2)
}
if ($1 == !addquote) {
if ($2 == $null) { notice $nick 2[ARES] You're a fucking idiot. TO ADD A QUOTE THERE HAS TO BE SOMETHING THERE! | halt }
inc %quotenumber 1
msg $chan 2[ARES] Your quote has been added as quote %quotenumber
write quotes.txt %quotenumber Added By $nick on $date $+ : $2-
}
if ($1 == !qdel) {
if ($readini(mods.ini,MODS,$nick) == $null) { notice $nick 2[ARES] Access Denied. | halt }
if ($readini(mods.ini,MODS,$nick) < 10) { notice $nick 2[ARES] Access Denied. | halt }
write -ds $2 quotes.txt
dec %quotenumber 1
msg $chan 2[ARES] The quote has been deleted.
}
}