on *:text:$+(%p *addquote*):#: {
write Quotes.txt $$3-
msg $chan -Quote Added-
}
I'd really feel better changing the given syntax. %p seems a bit odd.
on *:text:!addquote *:#: {
write Quotes.txt $$2-
msg $chan -Quote Added-
}
Would be how I'd do it. But, with no clue what %p is, I can't
go about changing it willy nilly. Also, be careful to note that
there is an intrisic bug to your original code. If somebody types:
%p blahblah I would like to tell you all how to addquote to this bot.
It'll trigger, because *addquote* matches and %p is $1. I
assume $2 is suppose to be addquote, in which case:
on *:text:$+(%p addquote *):#: {
write Quotes.txt $$3-
msg $chan -Quote Added-
}
Would be better. I could do better if I knew what the heck %p was.