summaryrefslogtreecommitdiff
path: root/protocols/MinecraftDynmap
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2015-05-26 08:33:42 +0000
committerRobert Pösel <robyer@seznam.cz>2015-05-26 08:33:42 +0000
commit8b3de7af5b6799b1c8ca41fe4633617a70c0894f (patch)
tree082eb0ff70730993df61f9883962aa143a0acd08 /protocols/MinecraftDynmap
parent74005082bb219fdef2b14900d0817f1486c22aee (diff)
Unify Netlib initialization error message in some protocols
git-svn-id: http://svn.miranda-ng.org/main/trunk@13841 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/MinecraftDynmap')
-rw-r--r--protocols/MinecraftDynmap/src/proto.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/protocols/MinecraftDynmap/src/proto.cpp b/protocols/MinecraftDynmap/src/proto.cpp
index 7cfa8e533c..3375654557 100644
--- a/protocols/MinecraftDynmap/src/proto.cpp
+++ b/protocols/MinecraftDynmap/src/proto.cpp
@@ -49,7 +49,9 @@ MinecraftDynmapProto::MinecraftDynmapProto(const char* proto_name, const TCHAR*
nlu.ptszDescriptiveName = descr;
m_hNetlibUser = (HANDLE)CallService(MS_NETLIB_REGISTERUSER, 0, (LPARAM)&nlu);
if (m_hNetlibUser == NULL) {
- MessageBox(NULL, TranslateT("Unable to get Netlib connection for Minecraft Dynmap"), m_tszUserName, MB_OK);
+ TCHAR error[200];
+ mir_sntprintf(error, SIZEOF(error), TranslateT("Unable to initialize Netlib for %s."), m_tszUserName);
+ MessageBox(NULL, error, _T("Miranda NG"), MB_OK | MB_ICONERROR);
}
// Http connection handles