Finished migrating legacy control record to new config format
[citadel.git] / citadel / modules / vcard / serv_vcard.c
index 12e39696d4a9c2554d33a6af8273057a6d94aca2..08cda5b080a3b4707a70b4f263c87d3cd37f2126 100644 (file)
  * set global flag calling for an aide to validate new users
  */
 void set_mm_valid(void) {
+       int flags = 0;
+
        begin_critical_section(S_CONTROL);
-       get_control();
-       CitControl.MMflags = CitControl.MMflags | MM_VALID ;
-       put_control();
+       flags = CtdlGetConfigInt("MMflags");
+       flags = flags | MM_VALID ;
+       CtdlSetConfigInt("MMflags", flags);
        end_critical_section(S_CONTROL);
 }