summaryrefslogtreecommitdiff
path: root/protocols/SkypeClassic
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-04-22 12:00:06 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-04-22 12:00:06 +0000
commit81a40dc68da904e326d8b73558c9b71f8a9fd914 (patch)
treeae404c8c53a5f633d9ef9cef3aa823aafc088d51 /protocols/SkypeClassic
parent184155c8aaf1dd0c8bcd498dfd7ba9c512433e73 (diff)
code cleanup
git-svn-id: http://svn.miranda-ng.org/main/trunk@9048 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/SkypeClassic')
-rw-r--r--protocols/SkypeClassic/src/skype.cpp6
-rw-r--r--protocols/SkypeClassic/src/skype.h1
2 files changed, 2 insertions, 5 deletions
diff --git a/protocols/SkypeClassic/src/skype.cpp b/protocols/SkypeClassic/src/skype.cpp
index cf542c7b62..e8f7abbc01 100644
--- a/protocols/SkypeClassic/src/skype.cpp
+++ b/protocols/SkypeClassic/src/skype.cpp
@@ -1042,8 +1042,6 @@ void FetchMessageThread(fetchmsg_arg *pargs) {
}
if (!strcmp(type,"LEFT") || (bAddedMembers = strcmp(type,"ADDEDMEMBERS")==0))
{
- char *pszInvited = Translate("invited ");
-
LOG(("FetchMessageThread CHAT LEFT or ADDEDMEMBERS"));
if (bAddedMembers) {
GCDEST gcd = { SKYPE_PROTONAME, make_nonutf_tchar_string((const unsigned char*)chat), GC_EVENT_ACTION };
@@ -1051,9 +1049,7 @@ void FetchMessageThread(fetchmsg_arg *pargs) {
gce.dwFlags = GCEF_ADDTOLOG;
gce.time = timestamp;
if (users=SkypeGetErr (cmdMessage, args.msgnum, "USERS")) {
- // We assume that users buffer has enough room for "invited" string
- memmove (users+strlen(pszInvited), users, strlen(users)+1);
- memcpy (users, pszInvited, strlen(pszInvited));
+ CMString(FORMAT, _T("%S %s"), users, TranslateT("invited"));
gce.ptszText= make_tchar_string((const unsigned char*)users);
if (who=SkypeGetErr (cmdMessage, args.msgnum, szPartnerHandle)) {
DBVARIANT dbv;
diff --git a/protocols/SkypeClassic/src/skype.h b/protocols/SkypeClassic/src/skype.h
index a07ce410f1..f6821b0063 100644
--- a/protocols/SkypeClassic/src/skype.h
+++ b/protocols/SkypeClassic/src/skype.h
@@ -44,6 +44,7 @@
#include <m_contacts.h>
#include <m_metacontacts.h>
#include <m_popup.h>
+#include <m_string.h>
#pragma warning (pop)