def
165857a5a8
Fix variable names manually
2020-11-02 22:40:40 +01:00
def
b1f0fd8969
Enable modernize-loop-convert clang-tidy check
...
and run clang-format afterwards
https://clang.llvm.org/extra/clang-tidy/checks/modernize-loop-convert.html
2020-11-02 22:40:24 +01:00
bors[bot]
2ba4d5d6cb
Merge #3136
...
3136: Fix some asan issues r=Jupeyy a=def-
Co-authored-by: def <dennis@felsin9.de>
2020-10-22 15:26:41 +00:00
bors[bot]
2709afb007
Merge #3095
...
3095: Disallow player name changes when the player is muted r=def- a=heinrich5991
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2020-10-20 15:56:16 +00:00
def
1081a6870c
Put CLineReader on stack so we can't forget to delete it
...
Found in https://github.com/ddnet/ddnet/issues/3134
Direct leak of 360712 byte(s) in 11 object(s) allocated from:
#0 0x51fb22 in operator new(unsigned long) (/home/teeworlds/servers/DDNet-Server-asan+0x51fb22)
#1 0x561d77 in CServer::GetAnnouncementLine(char const*) /home/teeworlds/src/master/src/engine/server/server.cpp:3563:20
#2 0x5c00a7 in CGameContext::OnTick() /home/teeworlds/src/master/src/game/server/gamecontext.cpp:971:32
#3 0x556073 in CServer::Run() /home/teeworlds/src/master/src/engine/server/server.cpp:2544:19
#4 0x561a56 in main /home/teeworlds/src/master/src/engine/server/server.cpp:3537:21
#5 0x7f2349f3809a in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2409a)
2020-10-18 12:57:36 +02:00
Learath2
ba7b95f7ad
Revert #3066
...
This reverts commits:
a2b3f45f8b
26a07c804f
2020-10-17 17:32:52 +02:00
heinrich5991
6ff53358d3
Remove code for CRC in most places, except where needed for net compat
...
This should path the way to remove it altogether in the future.
2020-10-14 17:08:58 +02:00
heinrich5991
246d2ac3d6
Allow IServer users to check when client's names change
...
Use that available interface to process name change spam protection more
cleanly.
2020-10-14 16:42:35 +02:00
heinrich5991
a2b3f45f8b
Reintroduce CMDFLAG_TEST
...
Add some more helpful messages for executing test/game commands.
2020-10-11 16:27:28 +02:00
Andrii
26a07c804f
Disallow game-related commands unless testing is enabled
2020-10-11 16:02:10 +02:00
12pm
e34acce0cd
increase buffer size for name_ban messages
2020-10-11 14:25:31 +02:00
def
5ec702ad2f
Use rest instead of string in some commands
...
where it makes sense, means you don't need to quote strings for those
2020-10-04 17:52:05 +02:00
Dennis Felsing
cb2fa0800f
Merge pull request #2934 from def-/pr-show_ips2
...
Fix show_ips on non-SQL servers
2020-09-27 10:38:37 +02:00
Zwelf
cb2c1d2144
Fix cutting of one character when showing ips in rcon
...
The buffer size passed to `str_append` includes the null terminator.
2020-09-27 10:15:41 +02:00
def
b0b47e1286
Fix show_ips on non-SQL servers
...
Mistake was introduced in 7c31a15c93
We didn't notice since official servers are SQL, except Block servers,
and we just started moderating them a bit.
2020-09-27 01:16:18 +02:00
def
3be8a592e5
Run clang-format
...
Purely automatic change. In case of conflict with this change, apply the
other change and rerun the formatting to restore it:
$ python scripts/fix_style.py
2020-09-26 21:50:15 +02:00
def
6ce04d93f1
Server: Only recv new packets when we know they are waiting
...
Reduces the number of syscalls
2020-09-15 19:11:51 +02:00
def
28cd437684
Document which commands only work in initial config ( fixes #2773 )
2020-09-07 12:31:00 +02:00
bors[bot]
e3b879f616
Merge #2736
...
2736: Let 0.7 clients fastdownload too r=def- a=Learath2
Easier than expected, I wonder why I didn't do this at the start.
Co-authored-by: Learath <learath2@gmail.com>
2020-09-04 14:17:32 +00:00
Learath
b8242689c6
Let 0.7 clients fastdownload too
2020-09-04 16:45:49 +03:00
heinrich5991
31cfa9250d
Fix server port in teehistorian
...
Official servers weren't affected because they didn't use the default of
`sv_port 0`.
2020-08-29 14:14:37 +02:00
Andrii
cec8bf2195
Read server port from CNetServer but not from app config
2020-08-27 19:54:44 +03:00
def
d41a6e6878
Give a more instructive message on DNSBL ban
2020-08-25 13:41:38 +02:00
Learath
97b6704a6b
Add ban_region_range and sv_region_name
2020-08-19 14:07:55 +03:00
Learath
6a936602aa
Add ban_region
2020-08-19 12:38:49 +03:00
Zwelf
b2cf3cafc5
Implement dump_sqlserver
2020-08-03 16:37:50 +02:00
Zwelf
7c31a15c93
Add SQLite interface
2020-08-03 12:58:52 +02:00
Zwelf
2eb3d23ef4
Rewrite score using the new interface
...
delete file_score for now as it will be replaced by a sqlite backend
2020-08-03 12:58:52 +02:00
def
c8876b2c02
Fix legacy 64 player serverinfo, don't send duplicate packets ( fixes #2495 )
...
For legacy we sent the first packet once correctly, then the 2nd and 3rd
packet without the marker and token at the start, so they never worked.
For new 64 player serverinfo we sent all packets correctly but the 1st
packet twice.
Introduced in #1955 .
2020-07-13 00:19:00 +02:00
def
a34c72530b
Some minor improvements to sv_port 0, make it default
2020-07-09 18:28:20 +02:00
MikiGamer
f7eda384ea
changes for auto port
2020-07-09 17:48:03 +02:00
MikiGamer
beaadca6a9
switch, limited tries & sv_port 0
2020-07-09 17:47:30 +02:00
MikiGamer
6a87278c3d
find available port
2020-07-09 17:46:22 +02:00
def
f15ac1d869
Fix uninitialised values in sixup differently ( fixes #2421 )
...
"./DDNet-Server shutdown" still works
2020-07-07 10:26:44 +02:00
Learath
416cb37000
Send Sixup information to antibot
2020-07-01 21:09:58 +03:00
heinrich5991
358735aadb
Revert "Don't run UpdateServerInfo if server isn't initialized yet"
...
This reverts commit e69f747e5f
.
Fixes `shutdown` on the initial command line which is also used on CI.
2020-07-01 17:45:01 +02:00
def
e69f747e5f
Don't run UpdateServerInfo if server isn't initialized yet
...
or currently shutting down anyway. Fixes the first half of #2421
2020-06-30 18:33:22 +02:00
Learath
8d8f1d7208
Only SendChat to clients that exist. Initialize m_Sixup anyway
2020-06-30 18:58:44 +03:00
bors[bot]
1750bb09f7
Merge #2335 #2336 #2340 #2342 #2349
...
2335: Make it more clear that this is a sixup translation server r=heinrich5991 a=def-
2336: Set skill level for Sixup (fixes #2334 ) r=heinrich5991 a=def-
2340: Keeping multiple states consistent is hard (fixes #2315 ) r=heinrich5991 a=def-
let's go recount every time
2342: Don't forget video recorder fps setting r=heinrich5991 a=def-
after switching to non-videorecorder client
2349: Document which MySQL/MariaDB versions we require (fixes #2343 ) r=heinrich5991 a=def-
Co-authored-by: def <dennis@felsin9.de>
2020-06-24 14:37:53 +00:00
def
5b3b42b771
Make it more clear that this is a sixup translation server
2020-06-24 14:49:23 +02:00
def
a8a2b41f3a
Set skill level for Sixup ( fixes #2334 )
2020-06-23 22:47:29 +02:00
Learath
f327e5bc42
Log join type
2020-06-23 18:30:57 +03:00
Learath
28905c4659
Disable timeout for 0.7 clients
2020-06-20 19:52:23 +03:00
Learath
6db72b2388
Times are no longer negative in 0.7
2020-06-20 11:59:46 +03:00
Learath
91c44f1808
Sixup needs it's own maps
2020-06-20 01:00:45 +03:00
bors[bot]
5b4227fbba
Merge #2283
...
2283: teehistorian: Track whether clients join via the 0.7 protocol r=Learath2 a=heinrich5991
Co-authored-by: heinrich5991 <heinrich5991@gmail.com>
2020-06-19 20:31:40 +00:00
heinrich5991
e294da41ba
teehistorian: Track whether clients join via the 0.7 protocol
2020-06-19 22:06:39 +02:00
Learath
da68923ac3
Implement a switch for 0.7 compatibility
2020-06-19 22:08:41 +03:00
Learath
aeb7ea2971
Don't forget that the client is Sixup
2020-06-19 20:28:55 +03:00
Learath
70ecf785bb
Compatible version filter
2020-06-19 20:28:55 +03:00