Commit Graph

154 Commits

Author SHA1 Message Date
Pasi Kallinen 4c0614da1c Allow sorting the watching-screen names by either name or idle-time. (Based slightly on a patch by Dragonizer)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@369 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-12-24 18:09:15 +00:00
Pasi Kallinen abb8f106f6 Fix a bug; inprogress-dir is now configurable, so use that string length for str alloc instead of assuming it's 11 chars.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@361 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-06-11 19:40:51 +00:00
Pasi Kallinen 7b3bcd72d7 Config-file variable allow_new_nicks
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@360 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-04-09 16:42:14 +00:00
Pasi Kallinen f4a322f996 Fix segfault when no mkdir or chdir defined
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@358 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-04-06 23:13:06 +00:00
Pasi Kallinen 4e509075f4 Add new config file value 'mkdir', and allow variables in mkdir and chdir
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@355 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-04-01 12:09:42 +00:00
Pasi Kallinen 1feff8677b Watching menu shows what game the players are playing
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@354 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-04-01 10:11:38 +00:00
Pasi Kallinen d5636ad844 lockfile is global, not per-game variable
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@352 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 21:29:45 +00:00
Pasi Kallinen 89825b1ca4 passwd file is global config, not per-game
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@351 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 21:18:32 +00:00
Pasi Kallinen f64b9da317 Fix watching, thanks to Jilles!
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@349 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 16:21:58 +00:00
Pasi Kallinen c0b1bdfa8e Fix inprogress file name truncation
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@348 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 15:17:26 +00:00
Pasi Kallinen 731caa2fcf Allow setting max nick length in the dgl config file, while still retaining backwards compatibility with old-style, up to 20-char
long nicks.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@347 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-31 11:10:07 +00:00
Pasi Kallinen 7ec2c4b9cc Allow more than one game per dgl installation.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@345 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2007-03-29 20:14:55 +00:00
Joshua Kwan 7e976aa770 use a copy of the environment variable instead of the actual spot on the heap
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@338 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-09-12 08:58:32 +00:00
Jilles Tjoelker 0817cc32e8 * Make sure curses will redraw the watch list after 'm' has been used
* ^L and ^R will redraw the entire screen in the watch list


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@334 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-08-23 12:59:33 +00:00
Joshua Kwan 8f78e6128c use libgen.h
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@328 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-07-03 23:34:13 +00:00
Joshua Kwan 03718b936e setproctitle for teh lunix
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@327 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-07-03 19:19:28 +00:00
Jilles Tjoelker dc7b46bbfe Use setproctitle(3), if available, to hide autologin password and show logged
in user and whether they are playing.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@325 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-28 19:41:06 +00:00
Joshua Kwan 6fecd2b69d hide all extra arguments, because they're probably -p
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@321 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-22 16:36:09 +00:00
Joshua Kwan aa1a46543b fix everything!
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@309 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-18 21:16:50 +00:00
Joshua Kwan eee0d887dc bum da bum
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@306 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-18 18:18:13 +00:00
Joshua Kwan 9aee4e563f various fixes
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@304 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-18 18:16:22 +00:00
Joshua Kwan cda1f84bcc stuff
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@303 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-18 18:04:36 +00:00
Joshua Kwan 8e89cf0e65 autoconfize
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@301 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-18 17:57:29 +00:00
Joshua Kwan cd3f89cbc9 assert
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@297 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-14 18:06:25 +00:00
Joshua Kwan e07195ad82 wtf?
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@296 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-14 08:43:51 +00:00
Joshua Kwan f6b9135c34 pretty serious bugfix
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@292 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-13 03:05:47 +00:00
Joshua Kwan 1a36469589 add USER-authentication support
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@291 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-06-12 00:11:18 +00:00
Joshua Kwan f293d97c68 NULLify me if login fails
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@289 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-04-22 15:04:15 +00:00
Jilles Tjoelker 545e5e8721 Merge J. Ali Harlow's patch for NhExt support, with a few changes.
Tested a little whether nethack still works.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@288 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-04-21 16:22:55 +00:00
Joshua Kwan 4d45d4d263 move junk around, genericize things
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@287 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-04-03 19:27:42 +00:00
Jilles Tjoelker 61c7349a86 Change clear() to erase() for less flicker when refreshing watch list.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@286 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-21 16:53:07 +00:00
Jilles Tjoelker eeb6f9edaa Add possibility to backup the savefile before starting nethack.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@282 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-17 14:04:31 +00:00
Jilles Tjoelker 54e3b2a55f Reset offset to a lower value if not enough games exist anymore.
Avoids things like "(15-8 of 8)".


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@275 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-12 16:24:18 +00:00
Jilles Tjoelker 41fd7d3b21 Fix brettcar typo
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@273 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-10 12:27:34 +00:00
Brett Carrington 9eca87a1ed PLEASE LOOK AT THE DGL-CREATE-CHROOT SCRIPT
before you run it again. Same with the Makefile.
Most important change is in dgamelaunch.c


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@271 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-10 00:18:30 +00:00
Jilles Tjoelker d71b47be7e Stricter check on entered email addresses; the same check is now used for new
accounts as well as changes in existing accounts.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@268 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-06 20:34:27 +00:00
Jilles Tjoelker 9beae9e40d Selecting a game to watch with an uppercase letter attempts to change the
window size to the game's via the \033[8;<r>;<c>t sequence. Block SIGWINCH
before sending this sequence and unblock it after calling initcurses() again.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@267 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-04 14:38:02 +00:00
Jilles Tjoelker e33b7fabd6 Pass window size to watchers via inprogress file; show it on the list.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@265 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-04 13:58:03 +00:00
Jilles Tjoelker 2f258f13c7 Use client-supplied window size again (Pasi Kallinen).
Try to detect broken clients and force them to 80x24.
This backs out the functional change in rev 247.
Passing through window size to watchers in a later commit.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@264 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-04 13:30:12 +00:00
Jilles Tjoelker b3fb5538e8 Show total number of games in progress below the list, useful if there are
more than fits on the screen.



git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@263 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-03-01 21:17:05 +00:00
Jilles Tjoelker 742afceadc Don't fail if client-supplied window size seems incorrect.
Add forgotten change for 1.4.2 in Changelog.


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@259 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-24 15:46:01 +00:00
Jilles Tjoelker 2316fddf78 * Message length is at most 80, not 79 characters
* Improve dgl-wall's handling of bad arguments


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@254 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-22 22:40:33 +00:00
Joshua Kwan 56e5619777 Added dgl-wall to cvsignore, fixed build
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@249 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-22 09:01:03 +00:00
Jilles Tjoelker 89181d3dcd Abort if window size too small
Force window size to 80x24 (if the watched game's window size is larger than
the watcher's, chaos results)


git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@247 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-20 17:57:29 +00:00
Jilles Tjoelker 44c608a12f Make sure to watch right game on the second and further pages
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@246 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-19 21:10:23 +00:00
Joshua Kwan 8bfdcb26fe don't always call write_canned_rcfile()
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@245 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-17 18:33:13 +00:00
Joshua Kwan cb40c5ffc0 DEFCONFIG holds path to config file, hardcoded, edit Makefile for this
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@243 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-17 02:44:33 +00:00
Joshua Kwan 686c76bbea zero 'me' after allocating it
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@241 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-17 01:00:22 +00:00
Jilles Tjoelker f7f3ebcae7 Set me to NULL if new user doesn't enter a username.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@240 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-17 00:58:21 +00:00
Jilles Tjoelker 8769ab9e15 Block signals during writefile().
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@239 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2004-02-17 00:53:28 +00:00