rem: if (rv.network.isConnected()) 
add: if ("primServ" in rv.network) 
context: function getObjectDetails (obj, rv){    if (!rv)        rv = new Object();    if (!obj || (typeof obj != "object"))    {        dd ("** INVALID OBJECT passed to getObjectDetails (" + obj + "). **");        dd (getStackTrace());    }        rv.orig = obj;    rv.parent = obj.parent;        switch (obj.TYPE)    {        case "IRCChannel":            rv.channel = obj;            rv.server = rv.channel.parent;            rv.network = rv.server.parent;            break;        case "IRCUser":            rv.user = obj;            rv.server = rv.user.parent;            rv.network = rv.server.parent;            break;        case "IRCChanUser":            rv.user = obj;            rv.channel = rv.user.parent;            rv.server = rv.channel.parent;            rv.network = rv.server.parent;            break;        case "IRCNetwork":            rv.network = obj;            if (rv.network.isConnected())                rv.server = rv.network.primServ;            break;        case "IRCClient":            if (obj.lastNetwork)            {                rv.network = obj.lastNetwork;                if (rv.network.isConnected())                    rv.server = rv.network.primServ;            }            break;                    default:            /* no setup for unknown object */            break;    }    return rv;    }
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/fd5b690ac5196485ce55e7003867ff791f09cb20/static.js/buggy/xul/content/static.js