changeset 20:5efaeb3ef4b1 6.0.4

Split out tracking of officer notes from player notes.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Sat, 08 Nov 2014 11:58:20 -0500
parents 0f503f449e21
children 4498b83d391d
files gd.lua
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gd.lua	Wed Nov 05 19:29:22 2014 -0500
+++ b/gd.lua	Sat Nov 08 11:58:20 2014 -0500
@@ -239,7 +239,7 @@
 				 rank   = SV.fields.rank and rank_as_string or nil,
 				 level  = SV.fields.level and level or nil,
 				 pnote  = SV.fields.notes and publicnote or nil,
-				 onote  = SV.fields.notes and officernote or nil,
+				 onote  = SV.fields.onotes and officernote or nil,
 				})
 		end
 	end
@@ -283,7 +283,8 @@
 		-- Defaults need to transition from potential older savedvars
 		_G.GuildDeltaSV = {
 			chatframe = _G.GuildDelta_chatframe or DEFAULT_CHAT,
-			fields = _G.GuildDelta_fields or { rank = true, level = false, notes = true },
+			fields = _G.GuildDelta_fields or
+				{ rank = true, level = false, notes = true },
 			members = _G.GuildDelta_memberdata or {},
 			--notify_nochange = nil by default
 			--logging = nil by default
@@ -296,6 +297,9 @@
 		SV.green =  26/255
 		SV.blue =  160/255
 	end
+	if SV.fields.onotes == nil then
+		SV.fields.onotes = SV.fields.notes
+	end
 end
 
 -- Remove anything that normal operation doesn't need after finishing its work.