Commit a15d0922 authored by Simpy's avatar Simpy 🐹

ignore messages with spaces along with empty string like we do in other parts of the lib here

parent 6071b756
......@@ -152,7 +152,7 @@ end
function lib:VersionCheck(event, prefix, message, channel, sender)
local E = ElvUI[1]
if (event == "CHAT_MSG_ADDON") and sender and message and (message ~= "") and (prefix == lib.prefix) then
if (event == "CHAT_MSG_ADDON") and sender and message and (not strmatch(message, "^%s-$")) and (prefix == lib.prefix) then
if not lib.myName then lib.myName = E.myname..'-'..gsub(E.myrealm,'[%s%-]','') end
if sender == lib.myName then return end
if not E["pluginRecievedOutOfDateMessage"] then
......
  • "ignore messages that are spaces along with empty string like we do in other parts of the lib here" tried to correct my english sorry

    Edited by Simpy
  • basically: this commit will block messages that are "" or " " or " "

    Edited by Simpy
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment