private static void TokenizeContact(ContactInfo contactInfo) { if (contactInfo == null) throw new ArgumentNullException("contactInfo"); Guid? token = GetContactToken(contactInfo.MirandaHandle); if (token == null) { FlagDatabaseDirty(); contactInfo.WriteSetting(RS_CONTACT_TOKEN, RoamiePlugin.Singleton, Guid.NewGuid().ToString(), DatabaseSettingType.AsciiString); } }