==========================================================
I would suggest you to use oUF_DebuffHighlight instead. It has many options that oUF_DC don't have and its a lot better written(more efficient, less cpu usage, etc..).
==========================================================
oUF_DispelColor is a plugin for the unitframes addon "oUF".
It will color the backdrop/border of the frames based on the first debuff color. If no backdrop/border found, then it will create a texture and color that texture instead.
It won't load if the player class is "Hunter", "Rogue", "Warrior" and "Warlock".
*New way to handle things*
Now you don't need to have self.debuffs enabled. This mean you can enable oUF_DC on any frames without actually showing/spawning debuffs, or show all debuffs.
oUF_DC will only react on friendly units and will ignore hostiles ones.
How to enable oUF_DC on a frame?
Just add the variable "self.oufdc = true" to the frame.
Click-Casting
I added click casting(decursing) on frames handled by oUF_DC.
I will uses the correct spells based on your level.
It uses Mouse5 as button and Shift as modifier by default but you can change that easily in the lua. You can change the order of the spells too. Just read the comments carefully.
Class = Click / Shift-Click
Priest = Dispel Magic / Abolish Disease
Shaman = Cure Poison / Cure Disease
Druid = Abolish Poison / Remove Curse
Mage = Remove Lesser Curse
Paladin = Cleanse
*Note: This will change based on your level. (ie. It will use Purify for pally until they reach lvl 42(Cleanse))
Useful Links
oUF - The core mod for the unitframes layout.
oUF_Lily - Layout for oUF by haste.
oUF_P3lim - Layout for oUF by P3lim.
oUF_Lighterfluid - My layout for oUF.
oUF_Banzai - Plugin for oUF to color UFs based on aggro. (*You need LibBanzai-2.0*)
Wowace Forums - oUF modifications/layouts thread.