Commit f0509d0e authored by Per Cederqvist's avatar Per Cederqvist

(set_info): Allow motd_of_lyskom to be 0.

parent 49ca1410
/* /*
* $Id: admin.c,v 0.27 1998/08/29 13:03:30 ceder Exp $ * $Id: admin.c,v 0.28 1998/10/22 22:10:15 ceder Exp $
* Copyright (C) 1991, 1993, 1994, 1995, 1996 Lysator Academic Computer Association. * Copyright (C) 1991, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
*/ */
static const char * static const char *
rcsid = "$Id: admin.c,v 0.27 1998/08/29 13:03:30 ceder Exp $"; rcsid = "$Id: admin.c,v 0.28 1998/10/22 22:10:15 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -137,7 +137,11 @@ set_info(Info *info) ...@@ -137,7 +137,11 @@ set_info(Info *info)
/* Check that everything mentioned exists */ /* Check that everything mentioned exists */
GET_T_STAT(text, info->motd_of_lyskom, FAILURE); if (info->motd_of_lyskom != 0)
{
GET_T_STAT(text, info->motd_of_lyskom, FAILURE);
}
GET_C_STAT(conf, info->conf_pres_conf, FAILURE); GET_C_STAT(conf, info->conf_pres_conf, FAILURE);
GET_C_STAT(conf, info->pers_pres_conf, FAILURE); GET_C_STAT(conf, info->pers_pres_conf, FAILURE);
GET_C_STAT(conf, info->motd_conf, FAILURE); GET_C_STAT(conf, info->motd_conf, FAILURE);
......
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