From 0c2aa46ad3af72ade35d6389a5227f7b8bc0c3c0 Mon Sep 17 00:00:00 2001 From: sketchyphoenix Date: Mon, 23 Feb 2009 18:32:43 +0000 Subject: * Consolidated is_atcommand() and is_atcommand_sub() - replaced gmlvl arg with a flag arg for internal/player generated checks. (dummy sds that used this arg are given gm levels) - each command check runs through is_atcommand() and is checked for its origin (internal or player generated) - charcommands are also parsed in this function. - script atcommand/charcommand function calls to is_atcommand() have been updated - also updated some clif/map functions calls to is_atcommand() * charcommands should now log properly with the target of the command included. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13545 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/map/atcommand.h') diff --git a/src/map/atcommand.h b/src/map/atcommand.h index f74adb9f5..30ef3f297 100644 --- a/src/map/atcommand.h +++ b/src/map/atcommand.h @@ -17,8 +17,7 @@ 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(const int fd, struct map_session_data* sd, const char* message, int type); int get_atcommand_level(const AtCommandFunc func); void do_init_atcommand(void); -- cgit v1.2.3-70-g09d2