diff options
author | George Hazan <george.hazan@gmail.com> | 2015-05-31 11:46:05 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-05-31 11:46:05 +0000 |
commit | 1ce3da1cca093143d9629bc46e221dd8be962e12 (patch) | |
tree | b99d12d635a65f8c78499137137df2bd591b50be /protocols/Xfire/src/main.cpp | |
parent | 03512ff2ed0f3d1ed6857ee85b0eb7268931ec3f (diff) |
- MAllStrings: a handy union to hold an incoming string parameter of any type;
- FNAMECHAR: atavism extincted;
- PROTOSEARCHRESULT: structure prepared to use results of any type, including utf
git-svn-id: http://svn.miranda-ng.org/main/trunk@13932 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Xfire/src/main.cpp')
-rw-r--r-- | protocols/Xfire/src/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/protocols/Xfire/src/main.cpp b/protocols/Xfire/src/main.cpp index 0978600aaf..189439fa4a 100644 --- a/protocols/Xfire/src/main.cpp +++ b/protocols/Xfire/src/main.cpp @@ -388,11 +388,11 @@ void XFireClient::receivedPacket(XFirePacket *packet) { XFireFoundBuddys *fb = (XFireFoundBuddys*)content;
for (uint i = 0; i < fb->usernames->size(); i++) {
if ((char*)fb->usernames->at(i).c_str() != NULL)
- psr.nick = _A2T((char*)fb->usernames->at(i).c_str());
+ psr.nick.t = _A2T((char*)fb->usernames->at(i).c_str());
if ((char*)fb->fname->at(i).c_str() != NULL)
- psr.firstName = _A2T((char*)fb->fname->at(i).c_str());
+ psr.firstName.t = _A2T((char*)fb->fname->at(i).c_str());
if ((char*)fb->lname->at(i).c_str() != NULL)
- psr.lastName = _A2T((char*)fb->lname->at(i).c_str());
+ psr.lastName.t = _A2T((char*)fb->lname->at(i).c_str());
ProtoBroadcastAck(protocolname, NULL, ACKTYPE_SEARCH, ACKRESULT_DATA, (HANDLE)1, (LPARAM)& psr);
}
@@ -3057,7 +3057,7 @@ INT_PTR SearchAddtoList(WPARAM wParam, LPARAM lParam) if (myClient->client->connected)
{
InviteBuddyPacket invite;
- invite.addInviteName(std::string(_T2A(psr->nick)), Translate("Add me to your friend list."));
+ invite.addInviteName(std::string(_T2A(psr->nick.t)), Translate("Add me to your friend list."));
myClient->client->send(&invite);
}
|