summaryrefslogtreecommitdiff
path: root/protocols/MinecraftDynmap/src/chat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/MinecraftDynmap/src/chat.cpp')
-rw-r--r--protocols/MinecraftDynmap/src/chat.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/protocols/MinecraftDynmap/src/chat.cpp b/protocols/MinecraftDynmap/src/chat.cpp
index 4317adf91a..d41748bd84 100644
--- a/protocols/MinecraftDynmap/src/chat.cpp
+++ b/protocols/MinecraftDynmap/src/chat.cpp
@@ -27,8 +27,8 @@ void MinecraftDynmapProto::UpdateChat(const char *name, const char *message, con
std::string smessage = message;
utils::text::replace_all(&smessage, "%", "%%");
- ptrT tmessage(mir_a2t_cp(smessage.c_str(), CP_UTF8));
- ptrT tname(mir_a2t_cp(name, CP_UTF8));
+ ptrW tmessage(mir_a2u_cp(smessage.c_str(), CP_UTF8));
+ ptrW tname(mir_a2u_cp(name, CP_UTF8));
GCDEST gcd = { m_szModuleName, m_tszUserName, GC_EVENT_MESSAGE };
GCEVENT gce = { sizeof(gce), &gcd };
@@ -37,7 +37,7 @@ void MinecraftDynmapProto::UpdateChat(const char *name, const char *message, con
if (tname == NULL) {
gcd.iType = GC_EVENT_INFORMATION;
- tname = mir_tstrdup(TranslateT("Server"));
+ tname = mir_wstrdup(TranslateT("Server"));
gce.bIsMe = false;
}
else gce.bIsMe = (m_nick == name);
@@ -61,7 +61,7 @@ int MinecraftDynmapProto::OnChatEvent(WPARAM, LPARAM lParam)
{
case GC_USER_MESSAGE:
{
- std::string text = mir_t2a_cp(hook->ptszText,CP_UTF8);
+ std::string text = mir_u2a_cp(hook->ptszText,CP_UTF8);
// replace %% back to %, because chat automatically does this to sent messages
utils::text::replace_all(&text, "%%", "%");
@@ -88,7 +88,7 @@ int MinecraftDynmapProto::OnChatEvent(WPARAM, LPARAM lParam)
void MinecraftDynmapProto::AddChatContact(const char *name)
{
- ptrT tname(mir_a2t_cp(name, CP_UTF8));
+ ptrW tname(mir_a2u_cp(name, CP_UTF8));
GCDEST gcd = { m_szModuleName, m_tszUserName, GC_EVENT_JOIN };
GCEVENT gce = { sizeof(gce), &gcd };
@@ -108,7 +108,7 @@ void MinecraftDynmapProto::AddChatContact(const char *name)
void MinecraftDynmapProto::DeleteChatContact(const char *name)
{
- ptrT tname(mir_a2t_cp(name, CP_UTF8));
+ ptrW tname(mir_a2u_cp(name, CP_UTF8));
GCDEST gcd = { m_szModuleName, m_tszUserName, GC_EVENT_PART };
GCEVENT gce = { sizeof(gce), &gcd };
@@ -123,7 +123,7 @@ void MinecraftDynmapProto::DeleteChatContact(const char *name)
INT_PTR MinecraftDynmapProto::OnJoinChat(WPARAM,LPARAM suppress)
{
- ptrT tszTitle(mir_a2t_cp(m_title.c_str(), CP_UTF8));
+ ptrW tszTitle(mir_a2u_cp(m_title.c_str(), CP_UTF8));
// Create the group chat session
GCSESSION gcw = {sizeof(gcw)};
@@ -155,7 +155,7 @@ INT_PTR MinecraftDynmapProto::OnJoinChat(WPARAM,LPARAM suppress)
void MinecraftDynmapProto::SetTopic(const char *topic)
{
- ptrT ttopic(mir_a2t_cp(topic, CP_UTF8));
+ ptrW ttopic(mir_a2u_cp(topic, CP_UTF8));
GCDEST gcd = { m_szModuleName, m_tszUserName, GC_EVENT_TOPIC };
GCEVENT gce = { sizeof(gce), &gcd };