Pasi Kallinen
55bd7dce01
Fix warnings
2019-05-11 13:03:49 +03:00
fstd
673255a5d0
compile on NetBSD
2016-01-23 04:10:51 +01:00
Pasi Kallinen
16f718337f
Fix some warnings
2016-01-02 22:02:15 +02:00
Pasi Kallinen
3ebf583de9
Fix SQLite query where underscore was an unintended wildcard
2016-01-02 19:53:37 +02:00
Pasi Kallinen
6753fd6eca
Merge pull request #8 from henrikolsson/master
...
Prevent crash in passwordgood when supplied password is one character long
2015-12-09 20:46:18 +02:00
Pasi Kallinen
6435ddc779
Stop processing arguments at -c
...
Original patch by Neil Moore <neil@s-z.org>
2015-12-07 18:40:14 +02:00
Henrik Olsson
956ec310e8
Prevent crash in passwordgood when supplied password is one character long
2014-07-06 13:36:07 +02:00
Pasi Kallinen
d54512a31f
Add a -c option (login shell command) with an error message. (from Edoardo Spadolini)
2013-03-04 17:26:06 +02:00
Pasi Kallinen
4d16194de8
Change the shared memory key to the password file. (from Edoardo Spadolini)
2013-03-04 17:08:49 +02:00
Pasi Kallinen
768cddff32
Add config option "flowcontrol" to disable XON/XOFF.
2012-12-18 18:34:06 +02:00
Pasi Kallinen
9bd76d6c15
Add default_term configuration option.
...
If the user's TERM is something unknown, dgl will use the default_term instead.
2012-12-15 01:17:20 +02:00
Pasi Kallinen
7a565e5e14
Add some missing signal blocking, perhaps this will fix the jammed shared memory block in watching menu.
2012-09-09 19:51:01 +03:00
root
f29618c783
Change maximum banner line length to 256.
...
Add color and attribute changing commands to banners: $ATTR()
Fix chroot creation script failing if no nethack binary exists.
2012-06-03 09:45:58 +03:00
Pasi Kallinen
41d7edf4a4
Merge commits from http://git.develz.org/?p=dgamelaunch.git
...
- Allow DGLAUTH as additional variable to pass login data,
prioritized ahead of USER and LOGNAME. (Marc H. Thoben)
- Empty autologin variables before running any external
software. (Edoardo Spadolini)
- Remove -f parameter to prevent privilege escalation.
(Edoardo Spadolini)
Update documentation to reflect the changes.
2012-03-17 14:45:53 +02:00
Pasi Kallinen
7c0741110e
Ensure valid values in watching
2012-03-17 12:17:02 +02:00
Pasi Kallinen
bb5507b983
Allow defining the login db in config file also when using sqlite.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@628 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-13 16:13:53 +00:00
Pasi Kallinen
b5d3e6257b
Allow getting the server time and date via banner variables:
...
bannervars = [ "$DATETIME" = timeformat("%F %T") ]
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@624 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-12 14:34:40 +00:00
Pasi Kallinen
5a0c90fa0f
Make bannerstrmangle able to handle arbitrarily long strings.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@623 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-11 18:05:11 +00:00
Pasi Kallinen
85d39473fb
Always draw the whole banner.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@621 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-11 15:50:59 +00:00
Pasi Kallinen
4098176edc
Document error codes. Make all error conditions return unique error codes.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@619 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-10 19:06:20 +00:00
Pasi Kallinen
d770f8ed96
Add "duration" watch-mode column, which shows time since the game was started.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@618 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-10 17:50:41 +00:00
Pasi Kallinen
acfbf2781d
...except ncurses prevents using escape sequences. Grh.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@616 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-09 18:01:59 +00:00
Pasi Kallinen
6bce15fd41
Add $ESC(code), which allows changing text color and attributes in banners.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@615 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-09 17:47:24 +00:00
Pasi Kallinen
0ba0998ece
Replace server_id with generic configurable string replacements usable in banners.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@613 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-09 15:31:34 +00:00
Pasi Kallinen
3c51941256
Make sending select-utf8-charset escape code configurable.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@611 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-05 13:57:32 +00:00
Pasi Kallinen
1d7ceb5ddf
Make locale configurable.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@610 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-04 14:03:15 +00:00
Pasi Kallinen
8c4329175c
Fix default watch column indexes (Napkin).
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@608 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:57:22 +00:00
Pasi Kallinen
76be23aa5c
Add option -i <name> to initialize a player externally. (Marc H. Thoben <root@develz.org>)
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@607 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:53:34 +00:00
Pasi Kallinen
8e076008d1
Tweak output of -s slightly. (Marc H. Thoben <root@develz.org>)
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@606 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:49:14 +00:00
Pasi Kallinen
3b189f61d9
Add option -s to show active players. (Marc H. Thoben <root@develz.org>)
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@605 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:45:46 +00:00
Pasi Kallinen
b2ffeb7c3e
try to not stomp all over ncurses' WINCH handler (Jesse Luehrs <doy@tozt.net>)
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@604 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:42:30 +00:00
Pasi Kallinen
6942ccae67
Stop reinitializing curses inside a signal handler (doy).
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@603 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:40:03 +00:00
Pasi Kallinen
cc6cf14b6f
Blindly assume the user's terminal can do Unicode or be switched into it.
...
I expect this to work in 99% cases, and if it fails, there's probably no
regression since I don't know of a terminal that can be easily switched to
CP437 but doesn't support "\e%G".
It would be better to check if the terminal uses Unicode and convert
everything to ASCII, and I'll do that soon, but this version might be
good enough for now.
(Adam Borowski <kilobyte@angband.pl>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@600 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:34:01 +00:00
Pasi Kallinen
70fd9c005b
Fix corruption of non-ASCII characters in banners.
...
I hardcoded the locale to en_US.UTF-8 since it might get passed wrong,
and it's a reasonable value on public servers.
(Adam Borowski <kilobyte@angband.pl>)
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@596 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:05:31 +00:00
Pasi Kallinen
514e8808a9
Add extra_info_file support. (Darshan Shaligram <scintilla@gmail.com>)
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@595 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 15:00:14 +00:00
Pasi Kallinen
2004c0e472
Accept escape to go back in menus. (Darshan Shaligram <scintilla@gmail.com>)
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@592 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 14:47:50 +00:00
Pasi Kallinen
a224b6582c
Add watch_columns config option. (Darshan Shaligram <scintilla@gmail.com>)
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@591 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 14:46:42 +00:00
Pasi Kallinen
9fc78de52e
Bugfix: when using sqlite and registering a nick with length longer or equal to max_newnick_len, it may have succeeded even if such a nick already existed.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@590 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-10-03 13:47:19 +00:00
Pasi Kallinen
61e3e65647
When using $INCLUDE() in a bannerfile, don't display the file being included.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@587 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-08-12 18:06:34 +00:00
Pasi Kallinen
a070ebdbf2
Don't show idle times less than 5s.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@582 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-01-29 19:23:48 +00:00
Pasi Kallinen
7223417d76
Add account flags for admins, banned accounts, preventing password or email changing.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@581 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2011-01-29 16:39:05 +00:00
Pasi Kallinen
8fdf52f018
Ensure the watching menu page isn't outside the list. This can happen when returning
...
from watching a game on page 2 and there's fewer games being played.
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@579 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-12-18 12:14:25 +00:00
Pasi Kallinen
0321c2713c
Remove the internal text editor and all the support code; now compiles virus and ee as standalone executables.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@575 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-18 20:39:32 +00:00
Pasi Kallinen
ff31d082d1
Make ncurses redraw the whole screen after watching someone.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@574 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-18 19:58:32 +00:00
Pasi Kallinen
693eb02d0d
Move screen clears and refreshes into initcurses()
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@573 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-18 16:41:03 +00:00
Pasi Kallinen
16dfad48a4
More signals fixes &c. (Now it seems to work)
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@572 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-18 16:32:04 +00:00
Pasi Kallinen
d623b5c0d6
Improve signal handling and leaving/entering curses.
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@570 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-16 17:06:05 +00:00
Pasi Kallinen
725b6cd1d2
Improve signal handling a bit
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@569 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-16 06:50:18 +00:00
Pasi Kallinen
bf9db511f5
Move shmem freeing into it's own function
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@568 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-13 13:31:40 +00:00
Pasi Kallinen
ef9018dff1
Allow dumping the shared memory data with dgamelaunch -D
...
git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@567 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
2010-05-13 10:19:45 +00:00