summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-02-27 18:06:58 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-02-27 18:06:58 +0300
commit5eb599b7e3b9d0ae73661b74f5adbe05c73a50d2 (patch)
tree94dc27f92ce7965554a4e54501f989f68d0d63db /plugins
parentdaa30830aa1633a950deda06133d7a7d43d1cda8 (diff)
fixes #1846 (tabSRMM: get my own nick from "MyHandle")
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/src/msgdlgutils.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/msgdlgutils.cpp b/plugins/TabSRMM/src/msgdlgutils.cpp
index a2f515e0e1..58b00cbba1 100644
--- a/plugins/TabSRMM/src/msgdlgutils.cpp
+++ b/plugins/TabSRMM/src/msgdlgutils.cpp
@@ -1568,7 +1568,9 @@ void CTabBaseDlg::GetClientIcon()
void CTabBaseDlg::GetMyNick()
{
- ptrW tszNick(Contact_GetInfo(CNF_NICK, 0, m_cache->getActiveProto()));
+ ptrW tszNick(Contact_GetInfo(CNF_CUSTOMNICK, 0, m_cache->getActiveProto()));
+ if (tszNick == nullptr)
+ tszNick = Contact_GetInfo(CNF_NICK, 0, m_cache->getActiveProto());
if (tszNick != nullptr) {
if (mir_wstrlen(tszNick) == 0 || !mir_wstrcmp(tszNick, TranslateT("'(Unknown contact)'")))
wcsncpy_s(m_wszMyNickname, (m_myUin[0] ? m_myUin : TranslateT("'(Unknown contact)'")), _TRUNCATE);