mirror of
https://github.com/weechat/weechat.git
synced 2026-07-07 18:23:13 +02:00
core: use variable "items_count" directly from hashtable without calling function hashtable_get_integer
This commit is contained in:
@@ -4521,7 +4521,7 @@ COMMAND_CALLBACK(secure)
|
||||
_("Passphrase deleted") : _("Passphrase is not set"));
|
||||
if (passphrase_was_set)
|
||||
{
|
||||
if (hashtable_get_integer (secure_hashtable_data, "items_count") > 0)
|
||||
if (secure_hashtable_data->items_count > 0)
|
||||
command_save_file (secure_config_file);
|
||||
secure_buffer_display ();
|
||||
}
|
||||
@@ -4532,7 +4532,7 @@ COMMAND_CALLBACK(secure)
|
||||
gui_chat_printf (NULL,
|
||||
(passphrase_was_set) ?
|
||||
_("Passphrase changed") : _("Passphrase added"));
|
||||
if (hashtable_get_integer (secure_hashtable_data, "items_count") > 0)
|
||||
if (secure_hashtable_data->items_count > 0)
|
||||
command_save_file (secure_config_file);
|
||||
secure_buffer_display ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user