diff options
Diffstat (limited to 'protocols/MinecraftDynmap')
-rw-r--r-- | protocols/MinecraftDynmap/src/chat.cpp | 8 | ||||
-rw-r--r-- | protocols/MinecraftDynmap/src/communication.cpp | 4 | ||||
-rw-r--r-- | protocols/MinecraftDynmap/src/proto.cpp | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/protocols/MinecraftDynmap/src/chat.cpp b/protocols/MinecraftDynmap/src/chat.cpp index 7cbbb474fb..4317adf91a 100644 --- a/protocols/MinecraftDynmap/src/chat.cpp +++ b/protocols/MinecraftDynmap/src/chat.cpp @@ -99,9 +99,9 @@ void MinecraftDynmapProto::AddChatContact(const char *name) gce.bIsMe = (m_nick == name); if (gce.bIsMe) - gce.ptszStatus = _T("Admin"); + gce.ptszStatus = L"Admin"; else - gce.ptszStatus = _T("Normal"); + gce.ptszStatus = L"Normal"; CallServiceSync(MS_GC_EVENT,0,reinterpret_cast<LPARAM>(&gce)); } @@ -140,10 +140,10 @@ INT_PTR MinecraftDynmapProto::OnJoinChat(WPARAM,LPARAM suppress) GCDEST gcd = { m_szModuleName, m_tszUserName, GC_EVENT_ADDGROUP }; GCEVENT gce = { sizeof(gce), &gcd }; - gce.ptszStatus = _T("Admin"); + gce.ptszStatus = L"Admin"; CallServiceSync(MS_GC_EVENT, NULL, reinterpret_cast<LPARAM>(&gce)); - gce.ptszStatus = _T("Normal"); + gce.ptszStatus = L"Normal"; CallServiceSync(MS_GC_EVENT, NULL, reinterpret_cast<LPARAM>(&gce)); // Note: Initialization will finish up in SetChatStatus, called separately diff --git a/protocols/MinecraftDynmap/src/communication.cpp b/protocols/MinecraftDynmap/src/communication.cpp index 9b2b6bca91..4e24ddafa4 100644 --- a/protocols/MinecraftDynmap/src/communication.cpp +++ b/protocols/MinecraftDynmap/src/communication.cpp @@ -281,7 +281,7 @@ bool MinecraftDynmapProto::doEvents() // TODO: there are also "channel" and "account" elements if (!time_ || !playerName_ || !message_) { - debugLog(_T("Error: No player name, time or text for message")); + debugLog(L"Error: No player name, time or text for message"); continue; } @@ -289,7 +289,7 @@ bool MinecraftDynmapProto::doEvents() std::string name = playerName_.as_string(); std::string message = message_.as_string(); - debugLog(_T("Received message: [%d] %s -> %s"), timestamp, name.c_str(), message.c_str()); + debugLog(L"Received message: [%d] %s -> %s", timestamp, name.c_str(), message.c_str()); UpdateChat(name.c_str(), message.c_str(), timestamp); } } diff --git a/protocols/MinecraftDynmap/src/proto.cpp b/protocols/MinecraftDynmap/src/proto.cpp index 57952c1a2e..f2a15d6065 100644 --- a/protocols/MinecraftDynmap/src/proto.cpp +++ b/protocols/MinecraftDynmap/src/proto.cpp @@ -52,7 +52,7 @@ MinecraftDynmapProto::MinecraftDynmapProto(const char* proto_name, const TCHAR* if (m_hNetlibUser == NULL) { TCHAR error[200]; mir_sntprintf(error, TranslateT("Unable to initialize Netlib for %s."), m_tszUserName); - MessageBox(NULL, error, _T("Miranda NG"), MB_OK | MB_ICONERROR); + MessageBox(NULL, error, L"Miranda NG", MB_OK | MB_ICONERROR); } // Client instantiation |