CIRCChanMode.getModeStr Member

Returns the complete mode string, as constructed from its component parts.

Syntax

object.getModeStr(f);

Arguments

ArgumentSummary
f

Returns

Remarks

See Also

Source Code

function chan_modestr (f)
{
var str = "";
var modeCparams = "";
/* modeA are 'list' ones, and so should not be shown.
* modeB are 'param' ones, like +k key, so we wont show them either.
* modeC are 'on-param' ones, like +l limit, which we will show.
* modeD are 'boolean' ones, which we will definitely show.
*/
// Add modeD:
for (var m in this.modeD)
{
if (this.modeD[m])
str += m;
}
// Add modeC, save parameters for adding all the way at the end:
for (var m in this.modeC)
{
if (this.modeC[m])
{
str += m;
modeCparams += " " + this.modeC[m];
}
}
// Add parameters:
if (str)
str = "+" + str + modeCparams;
return str;
}