rem: e.channel.displayHere(getMsg(MSG_CHANNEL_OPENED, 
add: e.channel.displayHere(getMsg(MSG_CHANNEL_OPENED, 
context: function cmdJoin(e){    if (!("charset" in e))    {        e.charset = null;    }    else if (e.charset && !checkCharset(e.charset))    {        display (getMsg(MSG_ERR_INVALID_CHARSET, e.charset), MT_ERROR);        return null;    }    if (e.channelName && (e.channelName.search(",") != -1))    {        // We can join multiple channels! Woo!        var chan;        var chans = e.channelName.split(",");        var keys = [];        if (e.key)            keys = e.key.split(",");        for (var c in chans)        {            chan = dispatch("join", { charset: e.charset,                                       channelName: chans[c],                                       key: keys.shift() });        }        return chan;    }    if (!e.channelName)    {        var channel = e.channel;        if (!channel)        {            display(getMsg(MSG_ERR_REQUIRED_PARAM, "channel"), MT_ERROR);            return null;        }                e.channelName = channel.unicodeName;        if (channel.mode.key)            e.key = channel.mode.key    }        if (arrayIndexOf(e.server.channelTypes, e.channelName[0]) == -1)        e.channelName = e.server.channelTypes[0] + e.channelName;    var charset = e.charset ? e.charset : e.network.prefs["charset"];    e.channel = e.server.addChannel(e.channelName, charset);    if (e.charset)        e.channel.prefs["charset"] = e.charset;        e.channel.join(e.key);        /* !-channels are "safe" channels, and get a server-generated prefix. For     * this reason, we shouldn't do anything client-side until the server      * replies (since the reply will have the appropriate prefix). */    if (e.channelName[0] != "!")    {        if (!("messages" in e.channel))        {            e.channel.displayHere(getMsg(MSG_CHANNEL_OPENED,                                          e.channel.unicodeName), MT_INFO);        }        setCurrentObject(e.channel);    }    return e.channel;}
meta: 1622	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1622/0918cade427e1856c2e2bcfdefa8b4ea3e457b73/commands.js/clean/xul/content/commands.js