Commit 1faf0ab0 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(mark_conference_as_changed): Copy the keep_commented field to the small_conf.

(setup_small_conf): Ditto.
(init_small_conf): Initialize keep_commented.
(cached_get_keep_commented): New function.
parent 7b78ced4
/*
* $Id: simple-cache.c,v 0.107 2003/07/27 15:02:55 ceder Exp $
* $Id: simple-cache.c,v 0.108 2003/08/11 10:55:36 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -497,6 +497,7 @@ mark_conference_as_changed(Conf_no conf_no)
= l2g_first_appendable_key(&conf_c->texts) - 1;
small_conf_arr[conf_no]->nice = conf_c->nice;
small_conf_arr[conf_no]->keep_commented = conf_c->keep_commented;
small_conf_arr[conf_no]->type = conf_c->type;
small_conf_arr[conf_no]->supervisor = conf_c->supervisor;
}
......@@ -738,6 +739,7 @@ init_small_conf(Small_conf *sc)
sc->supervisor = 0;
sc->highest_local_no = 0;
sc->nice = param.default_nice;
sc->keep_commented = param.default_keep_commented;
}
static Small_conf *
......@@ -1261,6 +1263,12 @@ cached_get_garb_nice (Conf_no conf_no)
return small_conf_arr [ conf_no ]->nice;
}
extern Garb_nice
cached_get_keep_commented(Conf_no conf_no)
{
return small_conf_arr[conf_no]->keep_commented;
}
extern String
cached_get_name (Conf_no conf_no)
{
......@@ -2553,6 +2561,7 @@ setup_small_conf(Conf_no conf_no,
small_conf_arr[conf_no]->highest_local_no
= l2g_first_appendable_key(&conf_c->texts) - 1;
small_conf_arr[conf_no]->nice = conf_c->nice;
small_conf_arr[conf_no]->keep_commented = conf_c->keep_commented;
}
......
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