Commit Graph

86 Commits

Author SHA1 Message Date
wenngle ef438e1477
disallow duplicate names 2021-01-18 13:32:08 -05:00
Eyal Sawady c3f2d9d552
Improve socket error handling 2020-12-09 12:39:59 -05:00
Philip K 6693c97749
Ensure port number is valid 2020-12-06 12:56:17 -05:00
Philip K a990d49313
Catch all undefined flags 2020-12-06 11:41:33 -05:00
Ultracoolguy 6d74f2c4b9
Add ifndef guard for VERSION 2020-12-02 14:48:22 -05:00
j3s f9cf6faa70
Make /skip work properly 2020-12-02 03:10:50 -05:00
j3s 4aeebd4f53
Correct murder being gendered 2020-12-02 00:26:25 -05:00
Ultracoolguy 6ff83c2761
Print version of among-sus on client connection 2020-11-30 15:08:44 -05:00
Rampoina 1e43573346
Fix typo 2020-11-13 19:23:02 -05:00
Ultracoolguy 5f2cb288b7
Allow players to connect during match
It does so by putting them in a WAITING stage and check
accordingly
2020-11-10 15:20:19 -05:00
Eyal Sawady 7f9142c472
Initialize listen_addr et al 2020-11-09 16:44:39 -05:00
Ultracoolguy ca1166febf
Add newline for emergency button related errors 2020-11-08 13:22:44 -05:00
Ultracoolguy b22111593d
Prohibit voting for dead people and fix vote logging
Previously, on top of allowing voting dead people, it also
allowed vote logging even on invalid votes. Fix that by
moving the logging below the checking.
2020-11-08 11:30:45 -05:00
Ultracoolguy 96448759d6
Add argument parsing 2020-11-07 17:25:04 -05:00
Ultracoolguy aae642876e
Make map a char array 2020-11-07 12:11:16 -05:00
Martijn Braam da55a652c7
Make the game a bit more self documenting 2020-10-31 00:39:36 +01:00
Martijn Braam 1f4c8d800d
Add SO_REUSEADDR for ipv6 socket 2020-10-29 21:28:37 +01:00
Martijn Braam de6c8f0495
Differentiate win conditions 2020-10-29 21:26:59 +01:00
Martijn Braam 7012edb640
Fix a common typo in tasks 2020-10-29 21:25:52 +01:00
Ultracoolguy 4504fb3cda
Discard messages empty or with only whitespace 2020-10-24 19:47:03 -04:00
Martijn Braam 436df90387
Fix chat <0 bug 2020-10-22 20:58:00 +02:00
Eyal Sawady 6fc27a322a
Allow disabling of notifications 2020-10-22 13:56:44 -04:00
Martijn Braam fb2bd86344
Fixed impostor inconsistency 2020-10-21 19:58:46 +02:00
Martijn Braam be99b00470
Added /set without arguments 2020-10-21 19:57:14 +02:00
Martijn Braam c57a41da43
Don't allow overwriting end of input buffer 2020-10-21 19:52:26 +02:00
Ultracoolguy dbd3648f9d
Add /set command. Only one conf is supported atm 2020-10-21 12:45:23 -04:00
Martijn Braam d0d782aa77
Removed invalid door on upper 2020-10-21 16:05:49 +02:00
Konrad Dybcio 5a83eedc8a
main.c: Fix trailing whitespace 2020-10-20 15:32:09 -04:00
Martijn Braam 2d0296794e
Fixed admin reassign 2020-10-20 21:05:14 +02:00
Konrad Dybcio a20d2cfe51
main.c: Add alarm beep on game start 2020-10-20 14:44:23 -04:00
Martijn Braam 78b6cc9873
Added monitors to storage 2020-10-20 20:39:45 +02:00
Martijn Braam d74b5e3409
Clear admin state on join 2020-10-20 19:24:10 +02:00
Martijn Braam 3e2a9ed786
Discussion chat upgrades
- Added input sanitization
- Ghosts can talk to eachother
- Added /me and /shrug
2020-10-20 00:53:47 +02:00
Eyal Sawady 889111b734
Don't show movement notifications for ghosts 2020-10-19 17:59:46 -04:00
Koby Samuel 385bae9c74
referencing value fix 2020-10-19 14:40:19 -04:00
Eyal Sawady 5af8c9ae24
Prevent ghosts from calling emergencies 2020-10-19 14:29:57 -04:00
Eyal Sawady 3d49bbdc32
Require ghost task completion 2020-10-19 14:21:06 -04:00
Eyal Sawady ba10f73428
Remove trailing whitespace 2020-10-19 13:41:48 -04:00
Eyal Sawady 35f9e24fe8
discussion: clean up integer parsing 2020-10-19 12:28:48 -04:00
Eyal Sawady 4a080a89dc
Don't set RAND_MAX 2020-10-19 12:06:00 -04:00
Eyal Sawady 0eee7e7d81
Fix glibc build 2020-10-19 12:01:37 -04:00
Eyal Sawady 5cc7ec66e9
Check return value of setsockopt for IPv6 2020-10-19 10:44:20 -04:00
Eyal Sawady 073f9554c4
Fix yet more warnings
Platforms tested and compiling with no warnings:
- musl x86_64 clang, -Wall -Wextra -pedantic -Weverything -Wno-padded -Wno-missing-prototypes -Wno-missing-variable-declarations -Wno-disabled-macro-expansion
- musl x86_64 gcc, -Wall -Wextra -pedantic
- musl x86_64 cproc
- glibc x86_64 gcc, -Wall -Wextra -pedantic
- glibc x86_64 cproc
2020-10-19 10:21:09 -04:00
Eyal Sawady a4016a61a9
Add IPv6 support 2020-10-19 10:03:53 -04:00
Eyal Sawady d263f4ed74
Don't display ejected bodies
Also distinguish more clearly between found and unfound bodies.
2020-10-19 10:03:53 -04:00
Martijn Braam 6143b30212
Clean up debug printfs 2020-10-19 15:48:26 +02:00
Martijn Braam fcf07b9a48
Implemented long tasks 2020-10-19 15:43:10 +02:00
Sireesh Kodali d867cf3c14
set SO_REUSEADDR on the server socket 2020-10-19 12:45:29 +02:00
Sireesh Kodali c42ade3016
Generate random numbers in a less biased way 2020-10-19 12:45:20 +02:00
Martijn Braam 13320240fd
Give someone admin permissions if admin disconnects 2020-10-18 23:33:43 +02:00