mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-06-08 10:15:58 +02:00
sanity check in gameserver_stats if the msg source steamid was similar to us!
This commit is contained in:
parent
e143a6dd82
commit
2f5b0a4bea
1 changed files with 3 additions and 0 deletions
|
@ -537,6 +537,9 @@ void Steam_GameServerStats::network_callback_updated_stats(Common_Message *msg)
|
|||
// only triggered when we have a message
|
||||
void Steam_GameServerStats::network_callback(Common_Message *msg)
|
||||
{
|
||||
// this should never happen, but just in case
|
||||
if (msg->source_id() == settings->get_local_steam_id().ConvertToUint64()) return;
|
||||
|
||||
switch (msg->gameserver_stats_messages().type())
|
||||
{
|
||||
// user sent all their stats
|
||||
|
|
Loading…
Add table
Reference in a new issue