From f8675d1b80bd345175039f68c61266e2131f9ee7 Mon Sep 17 00:00:00 2001 From: Xruptor Date: Sun, 21 Aug 2016 08:27:04 -0400 Subject: [PATCH] BNSetMatureLanguageFilter was removed by Blizzard --- XanChat.lua | 11 +++++++---- XanChat.toc | 5 +++-- 2 files changed, 10 insertions(+), 6 deletions(-) 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 -- 1.7.9.5