Commit 7f78be4f authored by Per Cederqvist's avatar Per Cederqvist

(jubel): Handle the new "public" form.

parent 43587e7d
/*
* $Id: server-config.c,v 0.73 2001/11/04 21:03:48 ceder Exp $
* $Id: server-config.c,v 0.74 2002/02/15 03:52:20 ceder Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -368,21 +368,28 @@ jubel(const char *val, const struct parameter *par)
{
long a, b, c;
int res;
Bool public = FALSE;
if (val == NULL)
return OK;
if (!strncmp(val, "public ", 7))
{
public = TRUE;
val += 7;
}
res = sscanf(val, "%ld %ld %ld", &a, &b, &c);
switch (res)
{
case 3:
register_jubel (a, b, c);
register_jubel(a, b, c, public);
break;
case 2:
register_jubel (a, 0, b);
register_jubel(a, 0, b, public);
break;
default:
kom_log ("%s expecting 2 or 3 integers as args\n", par->name);
kom_log("%s expecting [public ] x y [z]\n", par->name);
return FAILURE;
}
return OK;
......
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