Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions x/ocap/addons/recorder/fnc_adminUIcontrol.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ params [

if (isNil "_PID") exitWith {};

private _userInfo = (getUserInfo _PID);
if (isNil "_userInfo") exitWith {};
private _userInfo = getUserInfo _PID;
if (_userInfo isEqualTo []) exitWith {};
_userInfo params ["_playerID", "_owner", "_playerUID"];
_unit = _userInfo select 10;

Expand Down
4 changes: 0 additions & 4 deletions x/ocap/addons/recorder/fnc_eh_onUserAdminStateChanged.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@

params ["_networkId", "_loggedIn", "_votedIn"];

_userInfo = (getUserInfo _networkId);
if (isNil "_userInfo") exitWith {};
_object = _userInfo select 10;

if (_loggedIn && !_votedIn) exitWith {
// if user has become admin by logging, not voting, trigger control addition check
[_networkId, "login"] call FUNC(adminUIcontrol);
Expand Down