1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 18:23:13 +02:00

core: do not display content of passphrase on /secure buffer

This commit is contained in:
Sébastien Helleu
2014-06-28 13:18:16 +02:00
parent baffcc7b76
commit 980a9abcfd
14 changed files with 31 additions and 69 deletions
+3 -21
View File
@@ -1215,27 +1215,9 @@ secure_buffer_display ()
/* display passphrase */
line++;
if (secure_passphrase)
{
if (secure_buffer_display_values)
{
gui_chat_printf_y (secure_buffer, line++,
"%s%s = %s\"%s%s%s\"",
_("Passphrase"),
GUI_COLOR(GUI_COLOR_CHAT_DELIMITERS),
GUI_COLOR(GUI_COLOR_CHAT),
GUI_COLOR(GUI_COLOR_CHAT_VALUE),
secure_passphrase,
GUI_COLOR(GUI_COLOR_CHAT));
}
else
gui_chat_printf_y (secure_buffer, line++, _("Passphrase is set"));
}
else
{
gui_chat_printf_y (secure_buffer, line++,
_("Passphrase is NOT set"));
}
gui_chat_printf_y (secure_buffer, line++,
(secure_passphrase) ?
_("Passphrase is set") : _("Passphrase is NOT set"));
/* display secured data */
count = secure_hashtable_data->items_count;