From 5b673efa121320d1575e126243fa2c7ec460952d Mon Sep 17 00:00:00 2001 From: Haru Date: Tue, 16 Feb 2016 13:31:41 +0100 Subject: Renamed config->read_file to config->load_file - The return value is now consistent with the libconfig standard (CONFIG_TRUE/CONFIG_FALSE). - Removed some redundant error messages. Signed-off-by: Haru --- src/map/atcommand.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index bc539837d..3966ff2f1 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -3615,14 +3615,14 @@ ACMD(reloadskilldb) ACMD(reloadatcommand) { config_t run_test; - if (libconfig->read_file(&run_test, "conf/groups.conf")) { + if (!libconfig->load_file(&run_test, "conf/groups.conf")) { clif->message(fd, msg_fd(fd,1036)); // Error reading groups.conf, reload failed. return false; } libconfig->destroy(&run_test); - if (libconfig->read_file(&run_test, map->ATCOMMAND_CONF_FILENAME)) { + if (!libconfig->load_file(&run_test, map->ATCOMMAND_CONF_FILENAME)) { clif->message(fd, msg_fd(fd,1037)); // Error reading atcommand.conf, reload failed. return false; } @@ -10012,7 +10012,7 @@ void atcommand_config_read(const char* config_filename) { int num_aliases = 0; nullpo_retv(config_filename); - if (libconfig->read_file(&atcommand_config, config_filename)) + if (!libconfig->load_file(&atcommand_config, config_filename)) return; // Command symbols -- cgit v1.2.3-70-g09d2