summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_server.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-12-29 13:30:44 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-12-29 13:30:44 +0300
commit8f347ca6c98948cab9d79475fe9d070fa3155828 (patch)
tree1ff3abd64983238c3f34b78b28e43c2aabf0448c /protocols/Steam/src/steam_server.cpp
parentf98fe1465694e5899d00bfb8814a5578b144d7c1 (diff)
code cleaning
Diffstat (limited to 'protocols/Steam/src/steam_server.cpp')
-rw-r--r--protocols/Steam/src/steam_server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Steam/src/steam_server.cpp b/protocols/Steam/src/steam_server.cpp
index e3150a4499..c96e821e19 100644
--- a/protocols/Steam/src/steam_server.cpp
+++ b/protocols/Steam/src/steam_server.cpp
@@ -50,13 +50,13 @@ void CSteamProto::OnGotAppInfo(const CMsgClientPICSProductInfoResponse &reply, c
auto *pApp = reply.apps[i];
if (pApp->buffer.len) {
- std::regex regex("\"name\"[\\s*]\"(.+?)\"");
+ std::regex regex("\"name\"\\s*\"(.+?)\"");
std::smatch match;
std::string content((char *)pApp->buffer.data, pApp->buffer.len);
if (std::regex_search(content, match, regex)) {
std::string szName = match[1];
CMStringA szSetting(FORMAT, "AppInfo_%d", pApp->appid);
- setString(szSetting, szName.c_str());
+ g_plugin.setUString(szSetting, szName.c_str());
for (auto &cc : AccContacts()) {
if (getDword(cc, "XStatusId") == pApp->appid) {