rem: if (networkOrName instanceof CIRCNetwork) 
add: if (isinstance(networkOrName, CIRCNetwork)) 
context: function cli_connect(networkOrName, requireSecurity){    var network;    var name;    if (networkOrName instanceof CIRCNetwork)    {        network = networkOrName;    }    else    {        name = networkOrName;        if (!(name in client.networks))        {            display(getMsg(MSG_ERR_UNKNOWN_NETWORK, name), MT_ERROR);            return null;        }        network = client.networks[name];    }    name = network.unicodeName;    if (!("messages" in network))        network.displayHere(getMsg(MSG_NETWORK_OPENED, name));    dispatch("set-current-view", { view: network });    if (network.isConnected())    {        network.display(getMsg(MSG_ALREADY_CONNECTED, name));        return network;    }    if (network.state != NET_OFFLINE)        return network;    if (network.prefs["nickname"] == DEFAULT_NICK)        network.prefs["nickname"] = prompt(MSG_ENTER_NICK, DEFAULT_NICK);    if (!("connecting" in network))        network.display(getMsg(MSG_NETWORK_CONNECTING, name));    network.connect(requireSecurity);    network.updateHeader();    client.updateHeader();    updateTitle();    return network;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/8a4c1438e6f081cd75d935bb18b94aa2f994c631/static.js/clean/extensions/irc/xul/content/static.js