'Update your contact information to reflect a change to a contact\'s
nickname.
@param person: The person in your contacts list whose nickname is
changing.
@type person: L{IPerson<interfaces.IPerson>} provider
@param newnick: The new nickname for this person.
@type newnick: C{str}'

def contactChangedNick(self, person, newnick):

    oldname = person.name
    if (oldname in self.contacts):
        del self.contacts[oldname]
        person.name = newnick
        self.contacts[newnick] = person
        if (oldname in self.onlineContacts):
            del self.onlineContacts[oldname]
            self.onlineContacts[newnick] = person
