rem: if (client.networks[n].isConnected()) client.networks[n].quit(reason); 
add: net = client.networks[n]; if (net.isConnected()) { netReason = (reason ? reason : net.prefs["defaultQuitMsg"]); netReason = (netReason ? netReason : client.userAgent); net.quit(netReason); } 
context: function cli_quit (reason){    for (var n in client.networks)    {        if (client.networks[n].isConnected())            client.networks[n].quit(reason);    }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/03aa76e58d8ce9907fb6100db0150894132ed728/static.js/clean/extensions/irc/xul/content/static.js