#include "..\script_component.hpp"

/*
 * Function: forge_client_phone_fnc_addEmail
 * Author: IDSolutions
 *
 * [Description]
 * Adds an email to the address book.
 *
 * Arguments:
 * 0: Email <STRING> - The email to add
 *
 * Return Value:
 * None
 *
 * Example:
 * ["test@test.com"] call forge_client_phone_fnc_addEmail;
 *
 * Public: Yes
 */

if (_this isEqualTo [""]) exitWith {};

private _tmp = call compile format ["%1", _this];
if ((typeName _tmp) isEqualTo "SCALAR") exitWith {};

GVAR(email) = _this;