+-for menu definitions, allow "default" commands (when user presses a
+ key not defined in other commands):
+ commands[default] = ...
+
+-in watching-menu "The following games are in progress:" should change
+ depending if there's only 1 game. It should also list the # of games.
+-in watching-menu, maybe we shouldn't pick players who have been
+ idle for too long when randomly choosing one to watch.
+-change dgl-banner handling; we only use the top line of it nowadays...
+ (maybe make that info config line: bannerline = "## $SERVERID" or something)
-allow the admin to config the watching menu:
-top banner
-bottom banner
col 0=selectletter, 1=playername, 2=gamenum, 3=termsize, 4=startdate,
5=starttime, 6=idletime
-set default sort method
-
+ -selectorchars:
+ watch_selectorchars = "abcdefghijklmn" (a-zA-Z, minus qQ)
+ -keys:
+ currently: qQ=return, '.'=sort++, ','=sort--, etc
-allow admin to set per-game "extra info" file,
extrainfofile = "/nh343/var/extrainfo/%n.xtranfo"
contents of which are shown in the watching menu as info-column.
{
int tmpi, okay = 0;
- for (tmpi = 0; tmpi < NUM_SORTMODES; tmpi++)
+ for (tmpi = (SORTMODE_NONE+1); tmpi < NUM_SORTMODES; tmpi++)
if (!strcasecmp(SORTMODE_NAME[tmpi], $3 )) {
globalconfig.sortmode = tmpi;
okay = 1;
return;
case '.':
- if (sortmode < (NUM_SORTMODES-1)) sortmode++; else sortmode = SORTMODE_NONE;
+ if (sortmode < (NUM_SORTMODES-1)) sortmode++; else sortmode = SORTMODE_USERNAME;
break;
case ',':
- if (sortmode > 0) sortmode--; else sortmode = (NUM_SORTMODES-1);
+ if (sortmode > SORTMODE_USERNAME) sortmode--; else sortmode = (NUM_SORTMODES-1);
break;
case 12: case 18: /* ^L, ^R */
globalconfig.shed_uid = (uid_t)-1;
globalconfig.shed_gid = (gid_t)-1;
- globalconfig.sortmode = SORTMODE_NONE;
+ globalconfig.sortmode = SORTMODE_USERNAME;
if (config)
{
maxnicklen = 10
# Set the default watching-screen sorting mode. Can be one of
-# "unsorted", "username", "game", "windowsize", "starttime" or "idletime".
-# Unsorted is the default.
+# "username", "game", "windowsize", "starttime" or "idletime".
+# "username" is the default.
#sortmode = "username"
# Path to a prepared chroot jail.