rem: var idx = arrayIndexOf (net.prefs["notifyList"], nickname); 
add: var list = net.prefs["notifyList"]; list = e.server.toLowerCase(list.join(";")).split(";"); var idx = arrayIndexOf (list, nickname); 
context: function cmdNotify(e){    var net = e.network;    if (!e.nickname)    {        if (net.prefs["notifyList"].length > 0)        {            /* delete the lists and force a ISON check, this will             * print the current online/offline status when the server             * responds */            delete net.onList;            delete net.offList;            onNotifyTimeout();        }        else        {            display(MSG_NO_NOTIFY_LIST);        }    }    else    {        var adds = new Array();        var subs = new Array();        for (var i in e.nicknameList)        {            var nickname = e.server.toLowerCase(e.nicknameList[i]);            var idx = arrayIndexOf (net.prefs["notifyList"], nickname);            if (idx == -1)            {                net.prefs["notifyList"].push (nickname);                adds.push(nickname);            }            else            {                arrayRemoveAt (net.prefs["notifyList"], idx);                subs.push(nickname);            }        }        net.prefs["notifyList"].update();        var msgname;        if (adds.length > 0)        {            msgname = (adds.length == 1) ? MSG_NOTIFY_ADDONE :                                           MSG_NOTIFY_ADDSOME;            display(getMsg(msgname, arraySpeak(adds)));        }        if (subs.length > 0)        {            msgname = (subs.length == 1) ? MSG_NOTIFY_DELONE :                                           MSG_NOTIFY_DELSOME;            display(getMsg(msgname, arraySpeak(subs)));        }        delete net.onList;        delete net.offList;        onNotifyTimeout();    }}
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/00b6cdf954399a8f3562bddaefd3164388596abb/commands.js/clean/xul/content/commands.js