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

(do_delete_pers): Update STAT_PERSONS.

(create_person_generic): Update STAT_PERSONS and STAT_CONFS.
parent 2b6cbc0c
/*
* $Id: person.c,v 0.78 2003/07/12 22:26:33 ceder Exp $
* $Id: person.c,v 0.79 2003/08/11 22:17:20 ceder Exp $
* Copyright (C) 1991-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -75,6 +75,7 @@
#include "kom-memory.h"
#include "server-time.h"
#include "send-async.h"
#include "stats.h"
BUGDECL;
......@@ -411,6 +412,7 @@ do_delete_pers (Pers_no pers_no)
l2g_clear(&pers_p->created_texts);
cached_delete_person(pers_no);
update_stat(STAT_PERSONS, -1);
/* ASYNC */
return OK;
......@@ -709,6 +711,8 @@ create_person_generic ( const String name,
login (new_user, passwd, FALSE);
}
update_stat(STAT_CONFS, 1);
update_stat(STAT_PERSONS, 1);
return 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