summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-09 15:26:00 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-10 22:44:01 +0300
commitcfd535c7f5b442ae3d96a192a2dbe8650cae99af (patch)
tree158feeb6ecbfcffdc766ec8ac1b2917383c744d3 /src/map/atcommand.c
parent3742a813233edca6a59cc027209b8cd6bfd6b70b (diff)
downloadhercules-cfd535c7f5b442ae3d96a192a2dbe8650cae99af.tar.gz
hercules-cfd535c7f5b442ae3d96a192a2dbe8650cae99af.tar.bz2
hercules-cfd535c7f5b442ae3d96a192a2dbe8650cae99af.tar.xz
hercules-cfd535c7f5b442ae3d96a192a2dbe8650cae99af.zip
Fix interfaces methods usage.
In some places was used direct methods.
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index ef528c454..dac51d153 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -10020,7 +10020,7 @@ void atcommand_config_read(const char* config_filename) {
if (config_setting_type(command) != CONFIG_TYPE_ARRAY)
continue;
commandname = config_setting_name(command);
- if ( !( commandinfo = atcommand_exists(commandname) ) ) {
+ if ( !( commandinfo = atcommand->exists(commandname) ) ) {
ShowConfigWarning(command, "atcommand_config_read: can not set alias for non-existent command %s", commandname);
continue;
}
@@ -10055,7 +10055,7 @@ void atcommand_config_read(const char* config_filename) {
command = libconfig->setting_get_elem(nolog, i);
commandname = config_setting_name(command);
- if ( !( commandinfo = atcommand_exists(commandname) ) ) {
+ if ( !( commandinfo = atcommand->exists(commandname) ) ) {
ShowConfigWarning(command, "atcommand_config_read: can not disable logging for non-existent command %s", commandname);
continue;
}
@@ -10077,7 +10077,7 @@ void atcommand_config_read(const char* config_filename) {
command = libconfig->setting_get_elem(help, i);
commandname = config_setting_name(command);
- if ( !( commandinfo = atcommand_exists(commandname) ) )
+ if ( !( commandinfo = atcommand->exists(commandname) ) )
ShowConfigWarning(command, "atcommand_config_read: command %s does not exist", commandname);
else {
if( commandinfo->help == NULL ) {