diff gd.lua @ 11:3961b0cc4642

TOC bump. Work around mature language filter bug.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Wed, 30 Nov 2011 20:00:40 +0000
parents be450e79048a
children 5efaeb3ef4b1
line wrap: on
line diff
--- a/gd.lua	Tue Jun 28 17:22:08 2011 +0000
+++ b/gd.lua	Wed Nov 30 20:00:40 2011 +0000
@@ -224,6 +224,8 @@
 
 function addon:current_guild_info (N)
 	local ret = {}
+	local swearing = GetCVar("profanityFilter")
+	SetCVar ("profanityFilter", "0")
 	for i = 1, N do
 		local name,rank_as_string,_,level,_,_,publicnote,officernote = GetGuildRosterInfo(i)
 		-- This technically does not work out to the same as A?B:C, combined
@@ -242,6 +244,7 @@
 		end
 	end
 	table.sort(ret, function (l,r) return l.name < r.name end)
+	SetCVar ("profanityFilter", swearing)
 	return ret
 end