From e23f51997817bdaa549fbed05c9eabb83824c8ed Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Thu, 13 Dec 2012 04:58:50 +0000 Subject: not allow create more than one account git-svn-id: http://svn.miranda-ng.org/main/trunk@2733 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Skype/src/skype_instances.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/protocols/Skype/src/skype_instances.cpp b/protocols/Skype/src/skype_instances.cpp index 7a8527dfea..67b34e3f95 100644 --- a/protocols/Skype/src/skype_instances.cpp +++ b/protocols/Skype/src/skype_instances.cpp @@ -9,6 +9,10 @@ LIST CSkypeProto::instanceList(1, CSkypeProto::CompareProtos); CSkypeProto* CSkypeProto::InitSkypeProto(const char* protoName, const wchar_t* userName) { + if (CSkypeProto::instanceList.getCount() > 0) { + MessageBox(NULL, TranslateT("SkypeKit will only permit you to login to one account at a time. Adding multiple instances of SkypeKit is prohibited in the licence agreement and standard distribution terms."), _T(MODULE), MB_OK | MB_ICONWARNING); + return NULL; + } CSkypeProto *ppro = new CSkypeProto(protoName, userName); CSkypeProto::instanceList.insert(ppro); -- cgit v1.2.3