diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2013-06-10 10:42:46 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2013-06-10 10:42:46 +0000 |
commit | ef6701c0f1f29970a54a1a1e0219a1b5bbeb4984 (patch) | |
tree | 47936978d0385f84771eae9aed4d6a7a5a02f36d /protocols/Skype/src/skype_instances.cpp | |
parent | df428745363d5b3d22f2a737930ca0e7af8e2221 (diff) |
Skype:
- proto goes offline on disconnect
- fixed notifications
git-svn-id: http://svn.miranda-ng.org/main/trunk@4907 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_instances.cpp')
-rw-r--r-- | protocols/Skype/src/skype_instances.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/protocols/Skype/src/skype_instances.cpp b/protocols/Skype/src/skype_instances.cpp index 2875311c3f..bde45547b8 100644 --- a/protocols/Skype/src/skype_instances.cpp +++ b/protocols/Skype/src/skype_instances.cpp @@ -9,11 +9,11 @@ int CSkypeProto::CompareProtos(const CSkypeProto *p1, const CSkypeProto *p2) CSkypeProto* CSkypeProto::InitSkypeProto(const char* protoName, const wchar_t* userName)
{
- if (CSkypeProto::instanceList.getCount() > 0)
+ if (CSkypeProto::instanceList.getCount() > 0)
{
CSkypeProto::ShowNotification(
::TranslateT("SkypeKit will only permit you to login to one account at a time.\nAdding multiple instances of SkypeKit is prohibited in the licence agreement and standard distribution terms."),
- MB_ICONWARNING);
+ MB_ICONERROR);
return NULL;
}
@@ -23,30 +23,27 @@ CSkypeProto* CSkypeProto::InitSkypeProto(const char* protoName, const wchar_t* u if ( !ppro->StartSkypeRuntime((TCHAR *)profilename))
{
- CSkypeProto::ShowNotification(::TranslateT("Did not unpack SkypeKit.exe."));
+ CSkypeProto::ShowNotification(::TranslateT("Did not unpack SkypeKit.exe."), MB_ICONERROR);
return NULL;
}
char *keyPair = ppro->LoadKeyPair();
if ( !keyPair)
{
- CSkypeProto::ShowNotification(::TranslateT("Initialization key corrupted or not valid."));
- ppro->StopSkypeRuntime();
+ CSkypeProto::ShowNotification(::TranslateT("Initialization key corrupted or not valid."), MB_ICONERROR);
return NULL;
}
TransportInterface::Status status = ppro->init(keyPair, "127.0.0.1", ppro->skypeKitPort, 0, 1);
if (status != TransportInterface::OK)
{
- CSkypeProto::ShowNotification(::TranslateT("SkypeKit did not initialize."));
- ppro->StopSkypeRuntime();
+ CSkypeProto::ShowNotification(::TranslateT("SkypeKit did not initialize."), MB_ICONERROR);
return NULL;
}
if ( !ppro->start())
{
- ::MessageBox(NULL, TranslateT("SkypeKit did not start."), _T(MODULE), MB_OK | MB_ICONERROR);
- ppro->StopSkypeRuntime();
+ CSkypeProto::ShowNotification(TranslateT("SkypeKit did not start."), MB_ICONERROR);
return NULL;
}
|