mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-11-16 11:55:48 +00:00
hardcoding is bad
This commit is contained in:
1 parent
412637c1fa
commit
4d07655281
1 file changed
+4
-2
@@ -197,7 +197,8 @@ increase_max_hash_size ()
|
|||||||
|
|
||||||
if (config_fail)
|
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
|
} else
|
||||||
{
|
{
|
||||||
size = get_max_hash_size ();
|
size = get_max_hash_size ();
|
||||||
@@ -223,7 +224,8 @@ decrease_max_hash_size ()
|
|||||||
|
|
||||||
if (config_fail)
|
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
|
} else
|
||||||
{
|
{
|
||||||
size = get_max_hash_size ();
|
size = get_max_hash_size ();
|
||||||
|
|||||||
Reference in new issue
Block a user