summaryrefslogtreecommitdiff
path: root/protocols/Skype/src/skype_profile.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2013-04-20 19:35:45 +0000
committerAlexander Lantsev <aunsane@gmail.com>2013-04-20 19:35:45 +0000
commit2973e11eefbc41935fdac9b6040bd0d360510e05 (patch)
tree1fb57c589636c8e994beba1449ef7fe11d6ce4d8 /protocols/Skype/src/skype_profile.cpp
parent5b48d799fc3ebbf8bb0e9010f12954db24c91a32 (diff)
refactoring continued
git-svn-id: http://svn.miranda-ng.org/main/trunk@4490 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Skype/src/skype_profile.cpp')
-rw-r--r--protocols/Skype/src/skype_profile.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Skype/src/skype_profile.cpp b/protocols/Skype/src/skype_profile.cpp
index 37d9dff106..44ddea1d42 100644
--- a/protocols/Skype/src/skype_profile.cpp
+++ b/protocols/Skype/src/skype_profile.cpp
@@ -370,5 +370,10 @@ void CSkypeProto::UpdateProfile(SEObject *obj, HANDLE hContact)
void __cdecl CSkypeProto::LoadOwnInfo(void*)
{
+ wchar_t *nick = ::db_get_wsa(NULL, this->m_szModuleName, "Nick");
+ if (!nick || !::wcslen(nick))
+ {
+ ::db_set_ws(NULL, this->m_szModuleName, "Nick", this->login);
+ }
this->UpdateProfile(this->account.fetch());
} \ No newline at end of file