summaryrefslogtreecommitdiff
path: root/protocols/IcqOscarJ/src/changeinfo/upload.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IcqOscarJ/src/changeinfo/upload.cpp')
-rw-r--r--protocols/IcqOscarJ/src/changeinfo/upload.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/IcqOscarJ/src/changeinfo/upload.cpp b/protocols/IcqOscarJ/src/changeinfo/upload.cpp
index a468dc9f2b..165d65fa22 100644
--- a/protocols/IcqOscarJ/src/changeinfo/upload.cpp
+++ b/protocols/IcqOscarJ/src/changeinfo/upload.cpp
@@ -44,7 +44,7 @@ int CIcqProto::StringToListItemId(const char *szSetting,int def)
if (!szValue)
return def;
- for (i=0; list[i].text; i++)
+ for (i=0; list[i].text; i++)
if (!strcmpnull(list[i].text, szValue))
break;
@@ -71,6 +71,11 @@ int ChangeInfoData::UploadSettings(void)
{
if (strlennull(Password) > 0 && strcmpnull(Password, tmp))
{
+ // update password in user info dialog (still open)
+ strcpy(Password, tmp);
+ // update password in protocol
+ strcpy(ppro->m_szPassword, tmp);
+
hUpload[1] = (HANDLE)ppro->icq_changeUserPasswordServ(tmp);
char szPwd[PASSWORDMAXLEN] = {0};