CIRCChannel.getURL Member

Returns the IRC URL representation of this channel.

Syntax

object.getURL();

Returns

Remarks

See Also

Source Code

function chan_geturl()
{
var target = this.encodedName;
var flags = this.mode.key ? ["needkey"] : [];
if ((target[0] == "#") && (target.length > 1) &&
arrayIndexOf(this.parent.channelTypes, target[1]) == -1)
{
/* First character is "#" (which we're allowed to omit), and the
* following character is NOT a valid prefix, so it's safe to remove.
*/
target = target.substr(1);
}
return this.parent.parent.getURL(target, flags);
}