1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-08-13 16:53:48 -04:00

Don't send previous session's password

closes #616
This commit is contained in:
TingPing 2013-05-25 20:47:16 -03:00
parent c9c8993b9d
commit e47dd3eb89

View File

@ -3251,6 +3251,11 @@ cmd_server (struct session *sess, char *tbuf, char *word[], char *word_eol[])
safe_strcpy (serv->password, pass, sizeof (serv->password)); safe_strcpy (serv->password, pass, sizeof (serv->password));
serv->loginmethod = LOGIN_PASS; serv->loginmethod = LOGIN_PASS;
} }
else
{
serv->password[0] = 0;
}
#ifdef USE_OPENSSL #ifdef USE_OPENSSL
serv->use_ssl = use_ssl; serv->use_ssl = use_ssl;
serv->accept_invalid_cert = TRUE; serv->accept_invalid_cert = TRUE;