CIRCChannel._updateConferenceMode Member

Syntax

object._updateConferenceMode();

Returns

Remarks

See Also

Source Code

function my_updateconfmode()
{
const minDiff = client.CONFERENCE_LOW_PASS;
var enabled = this.prefs["conference.enabled"];
var userLimit = this.prefs["conference.limit"];
var userCount = this.getUsersLength();
if (userLimit == 0)
{
// userLimit == 0 --> always off.
if (enabled)
this.prefs["conference.enabled"] = false;
}
else if (userLimit == 1)
{
// userLimit == 1 --> always on.
if (!enabled)
this.prefs["conference.enabled"] = true;
}
else if (enabled && (userCount < userLimit - minDiff))
{
this.prefs["conference.enabled"] = false;
}
else if (!enabled && (userCount > userLimit + minDiff))
{
this.prefs["conference.enabled"] = true;
}
}