summaryrefslogtreecommitdiff
path: root/protocols/Tlen/src/tlen.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2017-09-11 23:49:15 +0300
committerKirill Volinsky <mataes2007@gmail.com>2017-09-11 23:49:15 +0300
commite09448dd03e3647717166e92ee818e395041993a (patch)
tree2733f155bb5fd9313ea08255209da75f738bcedf /protocols/Tlen/src/tlen.cpp
parentb0f44b16bd1138de85a5d17bb42151742f9c8298 (diff)
parent9834746e6a7e5cf04a32273155265bc3a2f57180 (diff)
Merge branch 'master' of https://github.com/miranda-ng/miranda-ng
Diffstat (limited to 'protocols/Tlen/src/tlen.cpp')
-rw-r--r--protocols/Tlen/src/tlen.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/protocols/Tlen/src/tlen.cpp b/protocols/Tlen/src/tlen.cpp
index 34f6828abf..db1a4bbfb1 100644
--- a/protocols/Tlen/src/tlen.cpp
+++ b/protocols/Tlen/src/tlen.cpp
@@ -230,19 +230,14 @@ INT_PTR TlenProtocol::MenuHandleInbox(WPARAM, LPARAM)
int TlenProtocol::OnModulesLoaded(WPARAM, LPARAM)
{
- char str[128];
/* Set all contacts to offline */
-
for (MCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName))
if (db_get_w(hContact, m_szModuleName, "Status", ID_STATUS_OFFLINE) != ID_STATUS_OFFLINE)
db_set_w(hContact, m_szModuleName, "Status", ID_STATUS_OFFLINE);
- strncpy_s(str, LPGEN("Incoming mail"), _TRUNCATE);
- SkinAddNewSoundEx("TlenMailNotify", m_szModuleName, str);
- strncpy_s(str, LPGEN("Alert"), _TRUNCATE);
- SkinAddNewSoundEx("TlenAlertNotify", m_szModuleName, str);
- strncpy_s(str, LPGEN("Voice chat"), _TRUNCATE);
- SkinAddNewSoundEx("TlenVoiceNotify", m_szModuleName, str);
+ Skin_AddSound("TlenMailNotify", m_tszUserName, LPGENW("Incoming mail"));
+ Skin_AddSound("TlenAlertNotify", m_tszUserName, LPGENW("Alert"));
+ Skin_AddSound("TlenVoiceNotify", m_tszUserName, LPGENW("Voice chat"));
HookProtoEvent(ME_USERINFO_INITIALISE, &TlenProtocol::UserInfoInit);
return 0;