From cb8be02ba40a00c33ca2ce083173187fd3722913 Mon Sep 17 00:00:00 2001 From: KyrosKrane Date: Tue, 7 Jul 2015 00:32:43 +0400 Subject: [PATCH] Fix naming conflict with WAY too many other addons. --- AnnoyingPopupRemover.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AnnoyingPopupRemover.lua b/AnnoyingPopupRemover.lua index 16bccff..ae6862e 100644 --- a/AnnoyingPopupRemover.lua +++ b/AnnoyingPopupRemover.lua @@ -127,9 +127,9 @@ end -- Splits a string into sections, based on a specified separator. -- Split text into a list consisting of the strings in text, -- separated by strings matching delimiter (which may be a pattern). --- example: strsplit(",%s*", "Anna, Bob, Charlie,Dolores") +-- example: APR_strsplit(",%s*", "Anna, Bob, Charlie,Dolores") -- Taken from Lua manual: http://lua-users.org/wiki/SplitJoin -function strsplit(delimiter, text) +function APR_strsplit(delimiter, text) local list = {} local pos = 1 if strfind("", delimiter, 1) then @@ -157,7 +157,7 @@ end -- Respond to user chat-line commands. function HandleCommandLine(msg, editbox) DebugPrint ("msg is " .. msg); - local Line = strsplit("%s+", msg); + local Line = APR_strsplit("%s+", msg); -- DumpTable(Line); if "hideloot" == Line[1] then -- 1.7.9.5