diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-12-13 04:58:50 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-12-13 04:58:50 +0000 |
commit | e23f51997817bdaa549fbed05c9eabb83824c8ed (patch) | |
tree | fc40ac1f5ce3ea5ca1c3cdc072f6d38d010c1005 | |
parent | d4e462377404468af5eb673faa3b17836fc0fc4c (diff) |
not allow create more than one account
git-svn-id: http://svn.miranda-ng.org/main/trunk@2733 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/Skype/src/skype_instances.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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> 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);
|