diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-11 15:07:50 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-11 15:07:50 +0000 |
commit | 764b106951b4c47cef929d17ca99e8f4a8165483 (patch) | |
tree | d1606321274760672db3e47d084586a55ce6b983 /protocols/JabberG/src/jabber_opt.cpp | |
parent | fabb5ec61205a9a3dca6f82645f257d00a534572 (diff) |
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
Diffstat (limited to 'protocols/JabberG/src/jabber_opt.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_opt.cpp | 20 |
1 files changed, 6 insertions, 14 deletions
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();
}
|