From aae24f9893fea616322dfe9e6831059fb1a23ac0 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 24 May 2009 17:32:32 +0000 Subject: [PATCH] Move shed_uid and shed_gid initial values to the correct place. Thanks to xororand. git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@459 db0b04b0-f4d1-0310-9a6d-de3e77497b0e --- TODO | 7 +++++++ config.y | 4 ---- dgl-common.c | 3 +++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/TODO b/TODO index 2cf44f1..496cb80 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,10 @@ +-allow changing the name where the ttyrecs are saved, like + ttyrec_fn = "%rttyrec/%n/%g/%p.ttyrec" +-allow typing / in watching screen to search for a user + ("/foo" would start watching user foo's game, or + report that that player is not playing. +-maybe save more stuff in the db, if we're using the sqlite + (last login timestamp, watch-menu sort-type, etc) -Allow using a ttyrec (or similar screen capture) as the menu text, instead of a text file. maybe adding a bannertype={auto,txt,ttyrec,screendump} diff --git a/config.y b/config.y index f051b99..1f407e8 100644 --- a/config.y +++ b/config.y @@ -93,10 +93,6 @@ KeyPair: TYPE_CMDQUEUE '[' TYPE_CMDQUEUENAME ']' struct group* gr; struct passwd* usr; - - globalconfig.shed_uid = (uid_t)-1; - globalconfig.shed_gid = (gid_t)-1; - switch ($1) { case TYPE_SGROUP: diff --git a/dgl-common.c b/dgl-common.c index a336045..d46638b 100644 --- a/dgl-common.c +++ b/dgl-common.c @@ -528,6 +528,9 @@ create_config () globalconfig.menulist = NULL; globalconfig.server_id = NULL; + globalconfig.shed_uid = (uid_t)-1; + globalconfig.shed_gid = (gid_t)-1; + globalconfig.sortmode = SORTMODE_NONE; if (config) -- 2.47.3