diff options
author | sketchyphoenix <sketchyphoenix@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-12-18 02:36:01 +0000 |
---|---|---|
committer | sketchyphoenix <sketchyphoenix@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-12-18 02:36:01 +0000 |
commit | 1fe43024299ca9bbe18791a86080b459c96c3227 (patch) | |
tree | fb9ab94a9cf0d1ef48b126fa96d1eb27b4f2894c /src/map/map.c | |
parent | 25aa6a70d711dbc1da0d02ca5f7ec9f8bd9be54e (diff) | |
download | hercules-1fe43024299ca9bbe18791a86080b459c96c3227.tar.gz hercules-1fe43024299ca9bbe18791a86080b459c96c3227.tar.bz2 hercules-1fe43024299ca9bbe18791a86080b459c96c3227.tar.xz hercules-1fe43024299ca9bbe18791a86080b459c96c3227.zip |
Removed charcommand code while allowing atcommand code to support its functionality.
Charcommands still retain their '#' symbol but now looks for a character name as the first parameter instead of last.
Atcommand configs now support charcommand level configurations by comma seperation (e.g. 60,99)
As a result of this, all atcommands that don't affect multiple users already (@kickall, @doom, @mapexit) are capable of remote usage.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13403 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r-- | src/map/map.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/map/map.c b/src/map/map.c index 21239a78b..dfefa7671 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -38,7 +38,6 @@ #include "homunculus.h" #include "mercenary.h" #include "atcommand.h" -#include "charcommand.h" #include "log.h" #ifndef TXT_ONLY #include "mail.h" @@ -2935,7 +2934,7 @@ int parse_console(char* buf) ShowInfo("Type of command: '%s' || Command: '%s' || Map: '%s' Coords: %d %d\n", type, command, map, x, y); if( n == 5 && strcmpi("admin",type) == 0 ){ - if( !is_atcommand_sub(sd.fd,&sd,command,99) ) + if( !is_atcommand_sub(sd.fd,&sd,command,99,sd.status.name) ) ShowInfo("Console: not atcommand\n"); } else if( n == 2 && strcmpi("server",type) == 0 ){ if( strcmpi("shutdown",command) == 0 || @@ -3468,8 +3467,6 @@ int do_init(int argc, char *argv[]) BATTLE_CONF_FILENAME = argv[i+1]; else if (strcmp(argv[i],"--atcommand_config") == 0 || strcmp(argv[i],"--atcommand-config") == 0) ATCOMMAND_CONF_FILENAME = argv[i+1]; - else if (strcmp(argv[i],"--charcommand_config") == 0 || strcmp(argv[i],"--charcommand-config") == 0) - CHARCOMMAND_CONF_FILENAME = argv[i+1]; else if (strcmp(argv[i],"--script_config") == 0 || strcmp(argv[i],"--script-config") == 0) SCRIPT_CONF_NAME = argv[i+1]; else if (strcmp(argv[i],"--msg_config") == 0 || strcmp(argv[i],"--msg-config") == 0) @@ -3511,7 +3508,6 @@ int do_init(int argc, char *argv[]) battle_config_read(BATTLE_CONF_FILENAME); msg_config_read(MSG_CONF_NAME); atcommand_config_read(ATCOMMAND_CONF_FILENAME); - charcommand_config_read(CHARCOMMAND_CONF_FILENAME); script_config_read(SCRIPT_CONF_NAME); inter_config_read(INTER_CONF_NAME); log_config_read(LOG_CONF_NAME); |