Commit graph

1699 commits

Author SHA1 Message Date
relesgoe
16349d8163 Upgrade d2dbs network processing to use fdwatch system and utilize other common PvPGN code 2021-02-25 22:00:31 -08:00
relesgoe
ac0cacfbd6 Call lua_handle_user() earlier within conn_destroy() to ensure none of the t_connection struct variables have been freed yet. 2021-01-31 11:46:19 -08:00
relesgoe
5f764c59ea Return -1 when catching an exception in __message_send_text(). 2021-01-31 11:39:56 -08:00
relesgoe
621e4ccad7 In __message_send_text(), declare variable 'message_type' as t_message_type's underlying type and initialize it to the integral value of message_type_null. Add bounds checking before using 'message_type'. 2021-01-31 11:39:29 -08:00
relesgoe
9bcca5841d Change verparts_to_vernum()'s verstr_to_vernum()'s and 'vernum' parameter type from 'unsigned long *' to 'std::uint32_t*' 2020-12-26 23:24:30 -08:00
HarpyWar
af0011ab7c allow set custom path to libcurl (for magic builder) 2020-12-18 20:00:25 +03:00
HarpyWar
d778abc615 clear maplists on /rehash to except overflow https://github.com/pvpgn/pvpgn-server/issues/429 2020-12-18 12:07:10 +03:00
HarpyWar
f707680980 unload default attrlayer causes crash on multiple /rehash
it's not required to destroy it first to load possible new default attributes
https://github.com/pvpgn/pvpgn-server/issues/429
2020-12-18 12:02:49 +03:00
relesgoe
207c707ebd Modify message "Receiver has reached his mail quota. Your message will NOT be sent." to "Receiver has reached their mail quota. Your message will NOT be sent." #428 2020-12-15 20:59:11 -08:00
relesgoe
ef1539f18b Set server_ladderreply.count to the number of ladder entries added to the packet instead of the number of requested ladder entries in _client_ladderreq() 2020-12-14 21:13:01 -08:00
relesgoe
45d5f153f7 Fix loading ladder lists in _client_ladderreq(). #368 2020-12-14 21:11:02 -08:00
relesgoe
ae07d2701b Reorganize third-party library files 2020-12-13 21:24:45 -08:00
relesgoe
ce11099a70 On Windows, use included Lua 5.1 library if LUA_LIBRARIES and LUA_INCLUDE_DIR aren't set by the user 2020-12-13 20:51:01 -08:00
relesgoe
081ec359ba Avoid CMake error when WITH_LUA is not set 2020-12-13 20:50:15 -08:00
relesgoe
143e5cd4dd Move json.h (JSON for Modern C++) to include/nlohmann 2020-12-13 20:14:18 -08:00
relesgoe
71f7b1f518 Update {fmt} to 7.1.3 2020-12-13 19:57:35 -08:00
relesgoe
fd0979cf3a Lookup versioncheck entry for connections on demand. 2020-12-13 19:55:21 -08:00
relesgoe
aee42bff26 Fix dangling pointer bugs in _handle_connections_command() and _handle_gameinfo_command() 2020-12-13 19:09:37 -08:00
relesgoe
092a66e5f1 Check whether account has bot access or is locked before attempting to compare account's password hash in handle_bot_packet() 2020-12-08 21:28:05 -08:00
relesgoe
e96d1970a7 Check whether account has bot access or is locked before attempting to compare account's password hash in handle_telnet_packet() 2020-12-08 21:27:18 -08:00
relesgoe
101c041330 Format handle_telnet.cpp 2020-12-08 21:22:39 -08:00
relesgoe
4ea1291b70 Call conn_increment_passfail_count() for current telnet connection in handle_telnet_packet() 2020-12-08 21:22:10 -08:00
relesgoe
b9538b1c5d Call conn_increment_passfail_count() for current bot connection in handle_bot_packet() 2020-12-08 21:21:50 -08:00
relesgoe
02b40e9df2 Format handle_bot.cpp 2020-12-08 21:12:16 -08:00
relesgoe
206772e898 Unify playerinfo (AKA "chat statstring") retrieval in conn_get_playerinfo(). 2020-12-08 20:42:09 -08:00
relesgoe
ce6d30f361 Null-terminate BnetSRP3::username and BnetSRP3::password in BnetSRP3::init(). 2020-12-03 20:31:31 -08:00
relesgoe
7dc0a62465 Revert safe_toupper() calls to std::toupper() calls in BnetSRP3::init(). safe_toupper() appears to be bugged. 2020-12-03 20:30:19 -08:00
relesgoe
291339ee9a Remove unnecessary variable 'sql_tables'. Fixes #427 2020-11-30 23:17:59 -08:00
relesgoe
0afb991c35 Fixed bug where _cb_load_attr() and attrgroup_load() weren't correctly comparing the storage driver found inside the string returned by prefs_get_storage_path(). Fixes #371 2020-11-30 23:08:54 -08:00
RElesgoe
e10e3e606b
Update README.md 2020-10-18 15:30:04 -07:00
RElesgoe
8ed246a8b4
Update README.md 2020-10-17 19:17:55 -07:00
RElesgoe
57b511a5be
Change flags passed to G++ and Clang to "-Wall -Wextra -Wno-implicit-fallthrough -Wno-parentheses -Wno-unused-parameter -pedantic" 2020-10-17 19:17:16 -07:00
RElesgoe
17e931280f
Change flags passed to G++ and Clang to "-Wall -Wextra -Wno-implicit-fallthrough -pedantic" 2020-10-17 19:09:29 -07:00
RElesgoe
c63bb693ff
Change flags passed to G++ and Clang to "-Wall -Wextra -Wcast-qual -pedantic" 2020-10-17 19:00:08 -07:00
relesgoe
8a37cf6e2f Clear 'd2ladder_ladder_file' and 'd2ladder_backup_file' variables before writing to it 2020-10-16 18:41:34 -07:00
relesgoe
e3b7f6cc68 Change calls to fmt::format_to_n() to fmt::format_to() 2020-10-16 16:46:26 -07:00
relesgoe
41089f127d Merge branch 'develop' of https://github.com/pvpgn/pvpgn-server into develop 2020-10-16 16:29:14 -07:00
relesgoe
b3613fae07 Update JSON for Modern C++ from 3.1.2 to 3.9.1 2020-10-16 16:29:11 -07:00
relesgoe
1042be1072 Replace usages of std::sprintf() with fmt::format() or fmt::format_to_n() in d2dbs 2020-10-10 13:07:07 -07:00
RElesgoe
6f5b27a8b0
Fix incorrect parameter value in call to BigInt() when initializing BnetSRP3::I, which caused a buffer overflow 2020-10-07 15:04:01 -07:00
RElesgoe
92211ef22d
Fixed heading formatting for CentOS 7 and Fedora 32 headings 2020-10-06 01:37:25 -07:00
relesgoe
f7c24b2d89 Merge branch 'develop' of https://github.com/pvpgn/pvpgn-server into develop 2020-10-06 01:28:02 -07:00
relesgoe
7901f666a3 Rewrite channel topics code to support JSON format 2020-10-06 01:27:54 -07:00
cen1
c50a499f9a
updated distro instructions 2020-10-05 19:11:06 +02:00
cen1
987ba4c42c
add lua 5.1 build instructions 2020-10-05 18:01:26 +02:00
cen1
0d945bd202
Update README.md
Add libcurl to apt command
2020-10-05 17:20:22 +02:00
RElesgoe
82fb9def9e
Update README.md 2020-10-03 16:32:27 -07:00
RElesgoe
325ae8a183
Fix regression where /ping command did not return the specified user's ping 2020-10-02 17:47:56 -07:00
relesgoe
ca61400e5d Merge branch 'develop' of https://github.com/pvpgn/pvpgn-server into develop 2020-10-02 13:28:47 -07:00
relesgoe
11c204a4d7 Fix regression in conn_get_playerinfo() where statstrings were not properly returned 2020-10-02 13:28:25 -07:00