Skip to content

Commit

Permalink
fix: change returns to allow core command scripts to proceed
Browse files Browse the repository at this point in the history
  • Loading branch information
55Honey committed Dec 27, 2021
1 parent 162a5b0 commit 65aa886
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion RecruitAFriend.lua
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,10 @@ local function RAF_command(event, player, command)
-- split the command variable into several strings which can be compared individually
commandArray = RAF_splitString(command)

if commandArray[1] ~= "bindraf" and commandArray[1] ~= "forcebindraf" and commandArray[1] ~= "raf" then
return
end

if commandArray[2] ~= nil then
commandArray[2] = commandArray[2]:gsub("[';\\, ]", "")
if commandArray[3] ~= nil then
Expand Down Expand Up @@ -267,7 +271,7 @@ local function RAF_command(event, player, command)
elseif commandArray[1] == "raf" then
if player == nil then
print(".raf is not meant to be used from the console.")
return
return false
end

local playerAccount = player:GetAccountId()
Expand Down

0 comments on commit 65aa886

Please sign in to comment.