Quantcast

BNSetMatureLanguageFilter was removed by Blizzard

Xruptor [08-21-16 - 12:27]
BNSetMatureLanguageFilter was removed by Blizzard
Filename
XanChat.lua
XanChat.toc
diff --git a/XanChat.lua b/XanChat.lua
index 1e62d9d..2a1d9ab 100644
--- a/XanChat.lua
+++ b/XanChat.lua
@@ -5,6 +5,11 @@
 	Scrolling and Chat Links
 --------------------------]]

+local debugf = tekDebug and tekDebug:GetFrame("xanChat")
+local function Debug(...)
+    if debugf then debugf:AddMessage(string.join(", ", tostringall(...))) end
+end
+
 local StickyTypeChannels = {
   SAY = 1,
   YELL = 0,
@@ -339,10 +344,8 @@ function eFrame:PLAYER_LOGIN()
 	if XCHT_DB.editBoxTop == nil then XCHT_DB.editBoxTop = false end
 	if XCHT_DB.hideTabs == nil then XCHT_DB.hideTabs = false end

-	--ALWAYS turn off profanity filter
-	if BNConnected() then
-		BNSetMatureLanguageFilter(false)
-	end
+	--turn off profanity filter
+	SetCVar("profanityFilter", 0)

 	--sticky channels
 	for k, v in pairs(StickyTypeChannels) do
diff --git a/XanChat.toc b/XanChat.toc
index 7837f81..d8842cc 100644
--- a/XanChat.toc
+++ b/XanChat.toc
@@ -1,8 +1,9 @@
-## Interface: 60000
+## Interface: 70000
 ## Title: xanChat
 ## Notes: A very minimalistic chat modification addon.
 ## Author: Xruptor
-## Version: 3.9
+## Version: 4.0
+## OptionalDeps: tekDebug
 ## SavedVariables: XCHT_DB

 xanChat.lua