Skip to content

Function: looksLikeSeat()

function looksLikeSeat(pin, handle): boolean;

Defined in: rine-core/dist/src/operator-pin.d.ts:43

Whether handle, a sender handle, is written like the operator's console seat. Needs a pin: with none, nothing is the operator's, so no handle is treated as its look-alike. A handle matches when it equals the pinned seat handle or, whatever the pin carries, when its local part is ops. Both handles go through cleanHandle and compare case-insensitively, so a long or out-of-set seat handle still matches the same sender handle. Only a display decision: a look-alike shows the sender's agent id instead of its handle.

Parameters

Parameter Type
pin OperatorPin | null
handle string

Returns

boolean