Skip to content

Commit

Permalink
Fixed issue #19 - disconnect event
Browse files Browse the repository at this point in the history
  • Loading branch information
szporwolik committed Nov 7, 2019
1 parent fe2b9cd commit fdcb82c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 01_DCS/Hooks/Perun.lua
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ end

Perun.onPlayerDisconnect = function(id, err_code)
-- Player disconnected
Perun.LogEvent("disconnect", "Player " .. id .. " disconnected.",nil,nil);
Perun.LogEvent("disconnect", "Player " .. id .. " disconnected.(?)",nil,nil);
return
end

Expand Down Expand Up @@ -818,8 +818,8 @@ Perun.onGameEvent = function (eventName,arg1,arg2,arg3,arg4,arg5,arg6,arg7)

elseif eventName == "disconnect" then
--"disconnect", playerID, name, playerSide, reason_code
Perun.LogEvent(eventName,"Player " .. arg2 .. " disconnected (".. arg4 .. ").",arg4,nil);
Perun.LogStats(arg1);
Perun.LogEvent(eventName,"Player " .. arg1 .. " disconnected!",nil,nil);

elseif eventName == "crash" then
--"crash", playerID, unit_missionID
Expand Down

0 comments on commit fdcb82c

Please sign in to comment.