BitToFlag Function

Converts a bit to an AdminFlag.

bool BitToFlag(int bit, AdminFlag& flag)

Parameters

int bit

Bit to convert.

AdminFlag& flag

Stores the converted flag by reference.

Return Value

True on success, false otherwise.