mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2024-11-27 05:04:01 +08:00
sanity check in gameserver_stats if the msg source steamid was similar to us!
This commit is contained in:
parent
e143a6dd82
commit
2f5b0a4bea
@ -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…
Reference in New Issue
Block a user