From bed0b55e70f13adf772584fc0d31ebfe59597115 Mon Sep 17 00:00:00 2001 From: gameboyprinter Date: Thu, 5 Jul 2018 12:21:32 -0500 Subject: Make discord toggleable, OOC name option, default bg fix --- text_file_functions.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'text_file_functions.cpp') diff --git a/text_file_functions.cpp b/text_file_functions.cpp index 90b10f53..2263fa18 100644 --- a/text_file_functions.cpp +++ b/text_file_functions.cpp @@ -52,6 +52,11 @@ QString AOApplication::read_theme() return result; } +QString AOApplication::get_ooc_name() +{ + return read_config("ooc_name"); +} + int AOApplication::read_blip_rate() { QString result = read_config("blip_rate"); @@ -571,8 +576,8 @@ bool AOApplication::get_blank_blip() return f_result.startsWith("true"); } - - - - - +bool AOApplication::is_discord_enabled() +{ + QString f_result = read_config("discord"); + return f_result.startsWith("true"); +} \ No newline at end of file -- cgit From 42e26d67756afc2cb8cdeb97ed654507c7cf4f3e Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Thu, 5 Jul 2018 21:32:49 -0500 Subject: Enable Discord by default if not in config.ini --- text_file_functions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'text_file_functions.cpp') diff --git a/text_file_functions.cpp b/text_file_functions.cpp index 2263fa18..b77e1788 100644 --- a/text_file_functions.cpp +++ b/text_file_functions.cpp @@ -579,5 +579,5 @@ bool AOApplication::get_blank_blip() bool AOApplication::is_discord_enabled() { QString f_result = read_config("discord"); - return f_result.startsWith("true"); -} \ No newline at end of file + return !f_result.startsWith("false"); +} -- cgit