From 764b106951b4c47cef929d17ca99e8f4a8165483 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 11 Jan 2014 15:07:50 +0000 Subject: Jabber not to eat the trailing symbol in chat's topic git-svn-id: http://svn.miranda-ng.org/main/trunk@7592 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_opt.cpp | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'protocols/JabberG/src/jabber_opt.cpp') diff --git a/protocols/JabberG/src/jabber_opt.cpp b/protocols/JabberG/src/jabber_opt.cpp index c0e3276b53..14f3ca7cba 100644 --- a/protocols/JabberG/src/jabber_opt.cpp +++ b/protocols/JabberG/src/jabber_opt.cpp @@ -1870,19 +1870,12 @@ private: m_cbServer.GetTextA(regInfo.server, SIZEOF(regInfo.server)); regInfo.port = (WORD)m_txtPort.GetInt(); if (m_chkManualHost.GetState() == BST_CHECKED) - { m_txtManualHost.GetTextA(regInfo.manualHost, SIZEOF(regInfo.manualHost)); - } else - { + else regInfo.manualHost[0] = '\0'; - } - if (regInfo.username[0] && regInfo.password[0] && regInfo.server[0] && regInfo.port>0 && ((m_chkManualHost.GetState() != BST_CHECKED) || regInfo.manualHost[0])) - { - CJabberDlgRegister dlg(m_proto, m_hwnd, ®Info); - dlg.DoModal(); -// DialogBoxParam(hInst, MAKEINTRESOURCE(IDD_OPT_REGISTER), m_hwnd, JabberRegisterDlgProc, (LPARAM)®Info); - } + if (regInfo.username[0] && regInfo.password[0] && regInfo.server[0] && regInfo.port > 0 && ((m_chkManualHost.GetState() != BST_CHECKED) || regInfo.manualHost[0])) + CJabberDlgRegister(m_proto, m_hwnd, ®Info).DoModal(); } void cbServer_OnDropdown(CCtrlCombo*) @@ -1917,8 +1910,7 @@ private: { CCtrlCheck *chk = (CCtrlCheck *)sender; - if (chk->GetState() == BST_CHECKED) - { + if (chk->GetState() == BST_CHECKED) { char buf[256]; m_cbServer.GetTextA(buf, SIZEOF(buf)); m_txtManualHost.SetTextA(buf); @@ -1926,8 +1918,8 @@ private: m_txtManualHost.Enable(); m_txtPort.Enable(); - } else - { + } + else { m_txtManualHost.Disable(); m_txtPort.Disable(); } -- cgit v1.2.3