View Single Post
12-28-14, 06:56 PM   #9
sirann
A Flamescale Wyrmkin
Join Date: Mar 2007
Posts: 142
I'm starting to think we are speaking about two different things. I was merely adding (regardless of the code below it) that there is no need for the event check, there's only one registered, it can only fire for addon_loaded.

I believe what you are getting at, is the fact that, as currently written, this script would fire as soon as the first addon is loaded, which I'm confident is not cbuffs. Since the initial if check requirements would not be met, the script would skip to the slashcommand creation, and would then unregister the only event it's listening for. This would essentially ensure the script never fires when he wants it to.

If that's what you're saying, I agree, and in no way intended to imply or convey otherwise. I just noticed a relatively common, and small, unoptimization.

If that's not what you're saying, please expand, because I don't see where I am incorrect in my suggestion.
  Reply With Quote