don't send card search results if searcher is blocked
This commit is contained in:
@@ -3549,9 +3549,11 @@ static void on_40(shared_ptr<Client> c, uint16_t, uint32_t, string& data) {
|
|||||||
try {
|
try {
|
||||||
auto s = c->require_server_state();
|
auto s = c->require_server_state();
|
||||||
auto result = s->find_client(nullptr, cmd.target_guild_card_number);
|
auto result = s->find_client(nullptr, cmd.target_guild_card_number);
|
||||||
auto result_lobby = result->lobby.lock();
|
if (!result->blocked_senders.count(c->license->serial_number)) {
|
||||||
if (result_lobby) {
|
auto result_lobby = result->lobby.lock();
|
||||||
send_card_search_result(c, result, result_lobby);
|
if (result_lobby) {
|
||||||
|
send_card_search_result(c, result, result_lobby);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} catch (const out_of_range&) {
|
} catch (const out_of_range&) {
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user