1
0
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:
Sebastien Helleu
2013-07-30 10:10:37 +02:00
parent 53fa3f770e
commit b3923b65f1
4 changed files with 8 additions and 11 deletions
+2 -2
View File
@@ -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 ();
}