Bug 256928 - Basic code to save the network's ignore list between sessions. No UI yet.

ChatZilla only.
r=silver
p=gijskruitbosch+bugs@gmail.com (Gijs Kruitbosch)
This commit is contained in:
silver%warwickcompsoc.co.uk 2005-11-26 20:59:45 +00:00
Родитель 82c284a1a3
Коммит e43a5b1b01
3 изменённых файлов: 9 добавлений и 0 удалений

Просмотреть файл

@ -3474,6 +3474,10 @@ function cmdIgnore(e)
else
display(getMsg(MSG_IGNORE_DELERR, e.mask));
}
// Update pref:
var ignoreList = keys(e.network.ignoreList);
e.network.prefs["ignoreList"] = ignoreList;
e.network.prefs["ignoreList"].update();
}
else
{

Просмотреть файл

@ -1001,6 +1001,10 @@ function my_showtonet (e)
// This makes sure we have the *right* me object.
this.primServ.me.rehome(this.primServ);
}
// Update the list of ignored users from the prefs:
var ignoreAry = this.prefs["ignoreList"];
for (var j = 0; j < ignoreAry.length; ++j)
this.ignoreList[ignoreAry[j]] = getHostmaskParts(ignoreAry[j]);
// After rehoming it is now safe for the user's commands.
var cmdary = this.prefs["autoperform"];

Просмотреть файл

@ -403,6 +403,7 @@ function getNetworkPrefManager(network)
["font.family", defer, "appearance.misc"],
["font.size", defer, "appearance.misc"],
["hasPrefs", false, "hidden"],
["ignoreList", [], "hidden"],
["log", client.prefs["networkLog"], ".log"],
["logFileName", makeLogNameNetwork, ".log"],
["motif.current", defer, "appearance.motif"],