diff bossmods.lua @ 106:095ee38508e8

Warn if restoring ridonkulous amount of data. Placeholder values for MoP raids.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Sun, 05 Aug 2012 19:08:53 +0000
parents c01875b275ca
children ce45011fab4c
line wrap: on
line diff
--- a/bossmods.lua	Sun Aug 05 16:59:24 2012 +0000
+++ b/bossmods.lua	Sun Aug 05 19:08:53 2012 +0000
@@ -58,6 +58,11 @@
 	local function DBMBossCallback (self, reason, mod, ...)
 		if (not self.rebroadcast) and (not self.enabled) then return end
 
+		-- Behavior based on the first arg to DBM:NewMod.  Old style is just
+		-- a boss name, which is set as mod.id and *should* also be set as
+		-- combatinfo.name.  New style is the "encounter ID", fed through the
+		-- EJ_GetEncounterInfo API to get the name, and then stripped down
+		-- to the first comma (if any).
 		local name
 		if mod.combatInfo and mod.combatInfo.name then
 			name = mod.combatInfo.name