summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_thread.cpp')
-rw-r--r--protocols/Steam/src/steam_thread.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Steam/src/steam_thread.cpp b/protocols/Steam/src/steam_thread.cpp
index 3249ef629e..ef6cb813b0 100644
--- a/protocols/Steam/src/steam_thread.cpp
+++ b/protocols/Steam/src/steam_thread.cpp
@@ -67,7 +67,7 @@ void CSteamProto::PollStatus(const char *token, const char *sessionId, UINT32 me
if (IsMe(steamId))
{
const wchar_t *oldNickname = getWStringA("Nick");
- if (lstrcmp(oldNickname, nickname))
+ if (lstrcmp(oldNickname, nickname) && lstrlen(nickname))
setWString("Nick", nickname);
SetStatus(status);
@@ -78,7 +78,7 @@ void CSteamProto::PollStatus(const char *token, const char *sessionId, UINT32 me
if (hContact)
{
const wchar_t *oldNickname = getWStringA(hContact, "Nick");
- if (lstrcmp(oldNickname, nickname))
+ if (lstrcmp(oldNickname, nickname) && lstrlen(nickname))
setWString(hContact, "Nick", nickname);
SetContactStatus(hContact, status);