Antwort auf: Sweeepy
okay dann sorry :)

gibt es irgendwo vielleicht ein tut zur persistence?


ohne jetzt ein tutorial zu machen, vielleicht hilft dir meine funktion, diese nutzt die persistenz um icons einen schlüssel zu geben beim Nutzer, und wenn man ein neues icon schickt mit dem gleichen schlüssel wird das alte erst entfernt, sollte ungefähr dem entsprechen was du dir wünscht.

Code:
User.prototype._addNicklistIconWithId = function _addNickListIconWithId(path, width, id) {
    var icons = this.getPersistence().getObject("nickIcons", {});
    if(typeof icons[id] != 'undefined') {
        this.removeNicklistIcon(icons[id]);
    }
    icons[id] = path;
    this.addNicklistIcon(path, width);
    this.getPersistence().setObject("nickIcons", icons);
};

User.prototype._removeNicklistIconById = function _removeNicklistIconById(id) {
    var icons = this.getPersistence().getObject("nickIcons", {});
    if(typeof icons[id] != 'undefined') {
        this.removeNicklistIcon(icons[id]);
    }
    delete icons[id];
    this.getPersistence().setObject("nickIcons", icons);
};


_________________________
/apps install 30559674.ChannelMaster