Commit 63b29b0a authored by Per Cederqvist's avatar Per Cederqvist

(create_text_add_aux): Adjusted to new API of

	aux_inherit_items().
(do_create_text): Adjusted to new API of
	text_stat_check_add_aux_item_list().
(modify_text_info): Ditto.
parent 3ec89ba4
/*
* $Id: text.c,v 0.113 2003/08/17 11:08:58 ceder Exp $
* $Id: text.c,v 0.114 2003/08/20 08:26:13 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -1866,8 +1866,6 @@ create_text_add_aux(Text_stat *t_stat,
&parent->aux_item_list,
&t_stat->highest_aux,
t_stat->author,
TRUE,
TEXT_OBJECT_TYPE,
text_no, t_stat);
}
break;
......@@ -2268,7 +2266,8 @@ do_create_text(const String message,
prepare_aux_item_list(aux, anonymous?0:ACTPERS);
if (create_text_check_misc(&no_of_misc, misc, anonymous,
need_public_jubel) != OK
|| text_stat_check_add_aux_item_list(NULL, aux, ACTPERS, TRUE) != OK
|| text_stat_check_add_aux_item_list(NULL, aux,
active_connection) != OK
|| (text = cached_create_text(message)) == 0)
{
return 0;
......@@ -3173,7 +3172,8 @@ modify_text_info(Text_no text,
TEXT_OBJECT_TYPE,
text, text_s);
if (text_stat_check_add_aux_item_list(text_s, aux, ACTPERS, FALSE) != OK)
if (text_stat_check_add_aux_item_list(text_s, aux,
active_connection) != OK)
{
undelete_aux_item_list(items_to_delete,
&text_s->aux_item_list,
......
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