rem: else if (e.motif.search(/\.css$/i) != -1) 
add: else if (e.motif.search(/^(file|https?|ftp):/i) != -1) 
context: function cmdMotif(e){    var pm;    var msg;    if (e.command.name == "channel-motif")    {        pm = e.channel.prefManager;        msg = MSG_CURRENT_CSS_CHAN;    }    else if (e.command.name == "network-motif")    {        pm = e.network.prefManager;        msg = MSG_CURRENT_CSS_NET;    }    else if (e.command.name == "user-motif")    {        pm = e.user.prefManager;        msg = MSG_CURRENT_CSS_USER;    }    else    {        pm = client.prefManager;        msg = MSG_CURRENT_CSS;    }    if (e.motif)    {        if (e.motif == "-")        {            // delete local motif in favor of default            pm.clearPref("motif.current");            e.motif = pm.prefs["motif.current"];        }        else if (e.motif.search(/\.css$/i) != -1)        {            // specific css file            pm.prefs["motif.current"] = e.motif;        }        else        {            // motif alias            var prefName = "motif." + e.motif;            if (client.prefManager.isKnownPref(prefName))            {                e.motif = client.prefManager.prefs[prefName];            }            else            {                display(getMsg(MSG_ERR_UNKNOWN_MOTIF, e.motif), MT_ERROR);                return;            }            pm.prefs["motif.current"] = e.motif;        }    }    display (getMsg(msg, pm.prefs["motif.current"]));}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/60efa3e2e91e249b7a842fc8304d4aeff125a386/commands.js/clean/extensions/irc/xul/content/commands.js