From 1fe43024299ca9bbe18791a86080b459c96c3227 Mon Sep 17 00:00:00 2001 From: sketchyphoenix Date: Thu, 18 Dec 2008 02:36:01 +0000 Subject: 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 --- src/map/atcommand.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/atcommand.h') diff --git a/src/map/atcommand.h b/src/map/atcommand.h index 875b014a3..03cbbfaf8 100644 --- a/src/map/atcommand.h +++ b/src/map/atcommand.h @@ -14,10 +14,11 @@ struct map_session_data; //#define AUTOLOOT_DISTANCE AREA_SIZE extern char atcommand_symbol; +extern char charcommand_symbol; typedef int (*AtCommandFunc)(const int fd, struct map_session_data* sd, const char* command, const char* message); bool is_atcommand(const int fd, struct map_session_data* sd, const char* message); -bool is_atcommand_sub(const int fd, struct map_session_data* sd, const char* str, int gmlvl); +bool is_atcommand_sub(const int fd, struct map_session_data* sd, const char* str, int gmlvl, const char charname[NAME_LENGTH]); int get_atcommand_level(const AtCommandFunc func); void do_init_atcommand(void); -- cgit v1.2.3-60-g2f50