Commit graph

1637 commits

Author SHA1 Message Date
relesgoe
6ccd19b164 Fix invalid vector::at() call to 'candidates' in AdBannerSelector::pick() 2020-09-25 16:15:40 -07:00
relesgoe
c98bc6eb55 Merge branch 'develop' of https://github.com/pvpgn/pvpgn-server into develop 2020-09-25 15:55:46 -07:00
RElesgoe
2f093fb624
Merge pull request from VPeruS/replace-foreach
adbanner: replace for_each with ranged-for
2020-09-25 15:55:06 -07:00
relesgoe
f23f8d6a8a Ensure exactly (std::strlen(CharName) + 1) bytes are written to a connection's write buffer instead of MAX_CHARNAME_LEN bytes 2020-09-25 15:51:54 -07:00
relesgoe
c0650d9cfa Merge branch 'develop' of https://github.com/pvpgn/pvpgn-server into develop 2020-09-19 18:12:48 -07:00
relesgoe
9fa737df00 - Rewrite IRC code with {fmt}
- Fixed bug where irc_send_cmd() may write past end of buffer
- Break RPL_NAMREPLY into multiple packets if message cannot fit in one packet
2020-09-19 18:12:46 -07:00
RElesgoe
7270261245
Update CMakeLists.txt 2020-09-19 17:36:18 -07:00
relesgoe
6e95caa6d6 Merge branch 'develop' of https://github.com/pvpgn/pvpgn-server into develop 2020-09-19 17:12:22 -07:00
relesgoe
e03b58d1e2 Update {fmt} to 7.0.3 2020-09-19 17:11:56 -07:00
RElesgoe
a88419daa6
Update CMakeLists.txt 2020-09-19 01:51:58 -07:00
RElesgoe
075390adc4
Update .travis.yml 2020-09-19 01:26:30 -07:00
relesgoe
0238e40f0a Merge branch 'develop' of https://github.com/pvpgn/pvpgn-server into develop 2020-09-18 15:35:29 -07:00
relesgoe
0ef29ae7bf Free 'gameresult', 'gameresult->players', and 'gameresult->heroes' before returning NULL in anongame_gameresult_parse() 2020-09-15 15:12:46 -07:00
relesgoe
94aaa0c928 Free 'whole' before returning in ipban_str_to_ipban_entry() 2020-09-15 15:08:36 -07:00
relesgoe
b27f7e65dd Free fp before continuing while loop in file_load_clans() 2020-09-08 22:15:08 -07:00
relesgoe
8508e58c75 Fix use-after-free bug in _anongame_queue() 2020-09-08 22:12:40 -07:00
relesgoe
c72000b6dc Free clan before returning in sql_load_clans() 2020-09-08 21:48:50 -07:00
relesgoe
46e6d81906 Free team before returning in sql_load_teams() 2020-09-08 21:47:24 -07:00
relesgoe
71f3dba359 Free member before returning in sql_load_clans() 2020-09-08 21:46:22 -07:00
RElesgoe
5b5cd7f965
Change hardcoded 'smtps://' to 'smtp://' in smtp_config() 2020-09-05 14:28:48 -07:00
relesgoe
ad2acf65f1 Merge branch 'develop' of https://github.com/pvpgn/pvpgn-server into develop 2020-09-01 21:23:44 -07:00
relesgoe
28471b310f Change database table 'email_verification' to 'emailverification'. Add 'emailverification' to 'sql_tables' 2020-09-01 21:17:34 -07:00
relesgoe
07a67cd0a5 Don't set account email to empty string if user declines to set an email address in _client_setemailreply() 2020-09-01 19:39:52 -07:00
RElesgoe
916f20e660
Fix eventlog message incorrectly reporting packet as logged in packet instead of connected packet in handle_bnet_packet() 2020-08-30 13:36:29 -07:00
relesgoe
6b9d251138 Merge branch 'develop' of https://github.com/pvpgn/pvpgn-server into develop 2020-08-30 02:57:33 -07:00
RElesgoe
c2167e18a6
Throttle smtp_consumer() thread 2020-08-28 22:51:43 -07:00
relesgoe
8e4c9e3890 Initialize temp_str in check_user_icon() 2020-08-27 22:56:27 -07:00
RElesgoe
68f52fd632
Update anongame_wol.cpp 2020-08-25 19:11:07 -07:00
RElesgoe
633dfa98f3
Update anongame_wol.cpp 2020-08-25 05:39:07 -07:00
RElesgoe
37fbd5c24b
Fix missing </item> 2020-08-24 23:01:07 -07:00
relesgoe
34c47a10bd Add logging in case std::rename() fails in dbs_packet_getdata_charsave() 2020-08-21 15:23:58 -07:00
relesgoe
b8e8372e34 Add logging in case p_mkdir() fails in dbs_packet_savedata_charinfo() 2020-08-21 15:20:58 -07:00
relesgoe
30df2166fb Free servaddr before returning in dbs_server_init() 2020-08-21 15:11:05 -07:00
relesgoe
91896b7e27 Clear sinInterface.sin_zero in dbs_server_init() 2020-08-21 15:06:43 -07:00
relesgoe
0034bb4e96 Replace call to std::strncpy() with std::snprintf() in d2ladder_readladder() because std::strncpy() may not null-terimate the destination string 2020-08-21 14:52:00 -07:00
relesgoe
636de8071e Fix incorrect case: find_package(Threads) 2020-08-13 00:04:24 -07:00
relesgoe
ffe711b71e Merge branch 'develop' of https://github.com/pvpgn/pvpgn-server into develop 2020-08-12 23:46:01 -07:00
relesgoe
4435f68223 Find and link the system's thread library in CMake for 'bnetd' target 2020-08-12 23:45:55 -07:00
RElesgoe
05e6092c7d
Add missing quotation marks in sql_DB_layout.conf.in 2020-08-12 19:08:37 -07:00
relesgoe
20a9b271b7 Change eventlog level from info to trace for one of the eventlog() calls in command_groups_load() 2020-08-09 09:56:11 -07:00
relesgoe
6b5fa783c8 Uncomment call to eventlog() guarded by COMMANDGROUPSDEBUG define in command_groups_load() 2020-08-09 09:55:27 -07:00
relesgoe
742efe4712 Use new and delete for allocating and freeing memory for the read_callback_message struct in smtp.cpp 2020-08-09 09:30:14 -07:00
relesgoe
444126671e Fix incorrect parameter in the call to account_generate_email_verification_code() in _handle_end_apiregtag(), change 'account' to 'tempacct' 2020-08-09 08:30:51 -07:00
relesgoe
3f8abb7b0a Move config option 'smtp_ca_cert_store_file' under the 'File section' category in bnetd.conf.in and bnetd.conf.win32 2020-08-09 08:22:00 -07:00
relesgoe
c0b29db11b Rename config option 'smtp_ca_cert_store' to 'smtp_ca_cert_store_file' 2020-08-09 08:20:50 -07:00
relesgoe
f2b52aed37 Add missing config option 'verify_account_email_from_name' in bnetd.conf.win32 2020-08-09 08:19:24 -07:00
RElesgoe
57a0d4fe45
Change curl_multi_poll() call to curl_multi_wait() in smtp_consumer() for compatibility with older libcurl versions 2020-08-08 19:30:45 -07:00
RElesgoe
414ebe1544
Merge pull request from pvpgn/feature-email
Add account email verification
2020-08-08 13:24:59 -07:00
relesgoe
e79338617b Fix incorrect comparison to return value of call to account_get_email_verified() in _handle_finger_command() 2020-08-08 13:23:56 -07:00
relesgoe
80dcead113 Update /finger command to show whether the account's email is verified or not 2020-08-08 10:46:17 -07:00