summaryrefslogtreecommitdiff
path: root/protocols/Steam/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src')
-rw-r--r--protocols/Steam/src/steam_proto.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp
index 5475a4368e..a37c9521e0 100644
--- a/protocols/Steam/src/steam_proto.cpp
+++ b/protocols/Steam/src/steam_proto.cpp
@@ -245,10 +245,8 @@ HANDLE CSteamProto::SearchByName(const wchar_t *nick, const wchar_t *firstName,
int CSteamProto::SendMsg(MCONTACT hContact, int, const char *message)
{
- if (!IsOnline()) {
- ProtoBroadcastAck(hContact, ACKTYPE_MESSAGE, ACKRESULT_FAILED, nullptr, (LPARAM)TranslateT("You cannot send messages when you are offline."));
- return 0;
- }
+ if (!IsOnline())
+ return -1;
return OnSendMessage(hContact, message);
}