diff --git a/Client/CMH.lua b/Client/CMH.lua index 6fea3ed..11a767b 100644 --- a/Client/CMH.lua +++ b/Client/CMH.lua @@ -25,7 +25,7 @@ local function GenerateReqId() return reqId end -local function ParseMessage(prefix, str) +local function ParseMessage(str) local output = {} local valTemp = {} local typeTemp = {} @@ -241,7 +241,7 @@ function CMH.OnDAT(sender, data) if(sizeOfDataCache == reqTable.count) then -- Concatenate the cache and parse the full payload for function variables to return local fullPayload = table.concat(reqTable.data); - local VarTable = ParseMessage(reqTable.addon, fullPayload) + local VarTable = ParseMessage(fullPayload) -- Retrieve the function from global namespace and pass variables if it exists local func = CMH[reqTable.addon][reqTable.funcId] diff --git a/Server/SMH.lua b/Server/SMH.lua index 0f2ca4d..a5b3518 100644 --- a/Server/SMH.lua +++ b/Server/SMH.lua @@ -27,7 +27,7 @@ local function GenerateReqId() return reqId end -local function ParseMessage(prefix, str) +local function ParseMessage(str) local output = {} local valTemp = {} local typeTemp = {} @@ -252,7 +252,7 @@ function SMH.OnDAT(sender, data) if(sizeOfDataCache == reqTable.count) then -- Concatenate the cache and parse the full payload for function variables to return local fullPayload = table.concat(reqTable.data); - local VarTable = ParseMessage(reqTable.addon, fullPayload) + local VarTable = ParseMessage(fullPayload) -- Retrieve the function from global namespace and pass variables if it exists local func = SMH[reqTable.addon][reqTable.funcId]