Skip to content

Commit

Permalink
Strip MXP from all channels, not just clans. Add hide and show to lct…
Browse files Browse the repository at this point in the history
… alias
  • Loading branch information
demonnic committed Mar 6, 2021
1 parent 8665ab6 commit 4d3bef4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 5 additions & 1 deletion src/aliases/LusterniaChatTabs/lct.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local valid_options = {"font", "fontSize", "blink", "blankLine", "timestamp", "save", "load"}
local valid_options = {"font", "fontSize", "blink", "blankLine", "timestamp", "save", "load", "show", "hide"}
local valid_options_string = table.concat(valid_options)
local option = matches[2]
local value = matches[3]
Expand All @@ -12,6 +12,10 @@ if option == "save" then
chatEMCO:save()
elseif option == "load" then
chatEMCO:load()
elseif option == "show" then
LusterniaChatTabs.emcoContainer:show()
elseif option == "hide" then
LusterniaChatTabs.emcoContainer:hide()
else
if value == nil then
cecho("<green>LusterniaChatTabs: <reset>You need to provide a value when trying to configure things\n")
Expand Down
4 changes: 1 addition & 3 deletions src/scripts/LusterniaChatTabs/ChatTabs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ local function chatCapture()
channel = channelToTab[info.channel]
end
local txt = ansi2decho(info.text)
if channel == "Clans" then
txt = txt:gsub(string.char(27) .. [[.-]] .. string.char(4), "")
end
txt = txt:gsub(string.char(27) .. [[.-]] .. string.char(4), "")
if ndb then
txt = addNDBdecho(txt)
end
Expand Down

0 comments on commit 4d3bef4

Please sign in to comment.