Skip to content

Commit

Permalink
add exception for dedicated servers
Browse files Browse the repository at this point in the history
  • Loading branch information
ASpoonPlaysGames committed Sep 7, 2023
1 parent 5880e7a commit 58000c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion NorthstarDLL/masterserver/masterserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "shared/misccommands.h"
#include "util/version.h"
#include "server/auth/bansystem.h"
#include "dedicated/dedicated.h"

#include "rapidjson/document.h"
#include "rapidjson/stringbuffer.h"
Expand Down Expand Up @@ -1189,8 +1190,11 @@ void MasterServerPresenceReporter::InternalAddServer(const ServerPresence* pServ
};

// don't log errors if we wouldn't actually show up in the server list anyway (stop tickets)
// except for dedis, for which this error logging is actually pretty important
bool shouldLogError =
!strstr(pServerPresence->m_MapName, "mp_lobby") && strstr(pServerPresence->m_PlaylistName, "private_match");
!strstr(pServerPresence->m_MapName, "mp_lobby")
&& strstr(pServerPresence->m_PlaylistName, "private_match")
&& !IsDedicatedServer();

curl_mime_data(part, modInfo.c_str(), modInfo.size());
curl_mime_name(part, "modinfo");
Expand Down

0 comments on commit 58000c8

Please sign in to comment.