From 4d07655281c9f9e0c554d4ad207daf41bc41b78d Mon Sep 17 00:00:00 2001 From: "berkeviktor@aol.com" Date: Wed, 12 Jan 2011 08:14:38 +0100 Subject: [PATCH] hardcoding is bad --- plugins/checksum/checksum.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/checksum/checksum.c b/plugins/checksum/checksum.c index 8465d161..e9a6bd99 100644 --- a/plugins/checksum/checksum.c +++ b/plugins/checksum/checksum.c @@ -197,7 +197,8 @@ increase_max_hash_size () if (config_fail) { - xchat_printf (ph, "Config file is unavailable, defaulting to 4 GB\n"); + xchat_printf (ph, "Config file is unavailable, falling back to the default value\n"); + print_size (); } else { size = get_max_hash_size (); @@ -223,7 +224,8 @@ decrease_max_hash_size () if (config_fail) { - xchat_printf (ph, "Config file is unavailable, defaulting to 4 GB\n"); + xchat_printf (ph, "Config file is unavailable, falling back to the default value\n"); + print_size (); } else { size = get_max_hash_size ();