View Single Post
02-17-13, 05:02 PM   #2
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
DisableAddOn() is only supposed to be on a per-character basis, so should not affect all of your characters.

But if you decide to go with the second approach still, do it this way instead so you're not making unnecessary function calls.
Lua Code:
  1. local _,class == UnitClass("player")
  2. if class == "WARLOCK" or class == "MONK" then
  3.      return
  4. end
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote