summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_thread.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-04-19 18:57:47 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-04-19 18:57:47 +0000
commit1a8c8c48ed38145781037cbe07f2d0c9c8c75d68 (patch)
tree9d1dc5918c10d588e3e01c46550f50e92fb498a5 /protocols/JabberG/src/jabber_thread.cpp
parentcfd5e84d59e615d93f721f7c016f5606487657ac (diff)
fix for processing jids from groupchats
git-svn-id: http://svn.miranda-ng.org/main/trunk@16719 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_thread.cpp')
-rwxr-xr-xprotocols/JabberG/src/jabber_thread.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp
index 8fba12715f..a909d017a2 100755
--- a/protocols/JabberG/src/jabber_thread.cpp
+++ b/protocols/JabberG/src/jabber_thread.cpp
@@ -72,17 +72,15 @@ static INT_PTR CALLBACK JabberPasswordDlgProc(HWND hwndDlg, UINT msg, WPARAM wPa
switch (msg) {
case WM_INITDIALOG:
TranslateDialogDefault(hwndDlg);
- {
- param = (JabberPasswordDlgParam*)lParam;
- SetWindowLongPtr(hwndDlg, GWLP_USERDATA, lParam);
- TCHAR text[512];
- mir_sntprintf(text, TranslateT("Enter password for %s"), param->ptszJid);
- SetDlgItemText(hwndDlg, IDC_JID, text);
+ param = (JabberPasswordDlgParam*)lParam;
+ SetWindowLongPtr(hwndDlg, GWLP_USERDATA, lParam);
- int bSavePassword = param->pro->getByte("SaveSessionPassword", 0);
- CheckDlgButton(hwndDlg, IDC_SAVEPASSWORD, (bSavePassword) ? BST_CHECKED : BST_UNCHECKED);
- }
+ TCHAR text[512];
+ mir_sntprintf(text, TranslateT("Enter password for %s"), param->ptszJid);
+ SetDlgItemText(hwndDlg, IDC_JID, text);
+
+ CheckDlgButton(hwndDlg, IDC_SAVEPASSWORD, param->pro->getByte("SaveSessionPassword", 0) ? BST_CHECKED : BST_UNCHECKED);
return TRUE;
case WM_COMMAND: