Commit c6c7f24a authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(create_person_generic): Use current_time instead of calling time().

parent c84a2e56
/*
* $Id: person.c,v 0.49 1999/05/12 13:25:19 byers Exp $
* $Id: person.c,v 0.50 1999/05/16 21:46:22 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -36,7 +36,7 @@
#endif
static const char *
rcsid = "$Id: person.c,v 0.49 1999/05/12 13:25:19 byers Exp $";
rcsid = "$Id: person.c,v 0.50 1999/05/16 21:46:22 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -82,6 +82,7 @@ USE(rcsid);
#include "aux-items.h"
#include "local-to-global.h"
#include "kom-memory.h"
#include "server-time.h"
BUGDECL;
......@@ -538,8 +539,6 @@ create_person_generic ( const String name,
Conference * mailbox;
Person * pers_p;
Membership_type mship_type;
time_t now;
if (ACTPERS == 0)
{
......@@ -603,10 +602,8 @@ create_person_generic ( const String name,
restart_kom("create_person() - can't get conf_stat");
}
now = time(NULL);
mailbox->creator = ACTPERS ? ACTPERS : new_user;
mailbox->creation_time = now;
mailbox->creation_time = current_time;
mailbox->presentation = 0; /* No presentation yet */
mailbox->supervisor = ACTPERS ? ACTPERS : new_user;
mailbox->permitted_submitters = 0;
......@@ -664,7 +661,7 @@ create_person_generic ( const String name,
do_add_member( new_user, mailbox, new_user, pers_p,
UCHAR_MAX, 0, &mship_type, FALSE );
prepare_aux_item_list(conf_aux, new_user, now);
prepare_aux_item_list(conf_aux, new_user);
if (conf_stat_check_add_aux_item_list(mailbox,
new_user,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment