Why when you could just set it as a variable like and have it triggered the way you're doing it is pointless here
On *:Text:*:#:{
var %Quote write QuoteDatabase.txt $2-
var %Read $read(QuoteDatabase.txt)
tokenize 32 $Strip($1-)
if ($1 == Quotes) { if ($2 == On) { set %Quotes On | msg Random Quotes Activated. }
else { if ($2 == Off) { set %Quotes Off | msg $chan Random Quotes Are Off. }
}
}
if ($1 == AddQuote) { if (%Quotes == On) { %Quote | msg $chan $2- Added. }
else { if (%Quotes == Off) { Halt }
}
}
if ($1 == Quote) { if (%Quotes == On) { msg chan %Read }
else { if (%Quotes == Off) { Halt }
}
}
}
Simple Bot Code Without the Hassle.
And don't use /'s in scripts they look better without them