summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Xfire/src/main.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/protocols/Xfire/src/main.cpp b/protocols/Xfire/src/main.cpp
index eb0d025c90..b663fd50b5 100644
--- a/protocols/Xfire/src/main.cpp
+++ b/protocols/Xfire/src/main.cpp
@@ -332,7 +332,7 @@ void XFireClient::sendmsg(char*usr,char*cmsg) {
SendStatusMessagePacket *packet = new SendStatusMessagePacket();
- packet->awaymsg = s.c_str();
+ packet->awaymsg = ptrA( mir_utf8encode(s.c_str()));
client->send( packet );
delete packet;
}
@@ -1373,7 +1373,7 @@ INT_PTR SendMessage(WPARAM wParam, LPARAM lParam)
if (myClient!=NULL)
if (myClient->client->connected&&db_get_w(ccs->hContact, protocolname, "Status", -1)!=ID_STATUS_OFFLINE)
{
- myClient->sendmsg(dbv.pszVal, ( char* )ccs->lParam);
+ myClient->sendmsg(dbv.pszVal, ptrA( mir_utf8encode((char*)ccs->lParam)));
mir_forkthread(SendAck,ccs->hContact);
sended=1;
}
@@ -2639,9 +2639,6 @@ void setBuddyStatusMsg(BuddyListEntry *entry)
db_unset(entry->hcontact, protocolname, "XStatusMsg");
}
- //statusmsg umwandeln
- entry->statusmsg = ptrA(mir_utf8decode((char*)entry->statusmsg.c_str(), NULL));
-
string afk = entry->statusmsg.substr(0, 5);
int status_id = (afk == "(AFK)" || afk == "(ABS)") ? ID_STATUS_AWAY : ID_STATUS_ONLINE;