From 1e96fe7d63e6ec25cad98a5b1bef1b81e2c00fb6 Mon Sep 17 00:00:00 2001 From: Lance Date: Thu, 16 Nov 2006 15:26:27 +0000 Subject: * Edited atcommand and charcommand syntax. Now it doesn't need the useless character name and ":". modified Changelog-Trunk.txt modified src/map/atcommand.c modified src/map/atcommand.h modified src/map/charcommand.c modified src/map/charcommand.h modified src/map/clif.c modified src/map/map.c modified src/map/script.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9230 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/map.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/map/map.c') diff --git a/src/map/map.c b/src/map/map.c index 1036edd15..75c428293 100644 --- a/src/map/map.c +++ b/src/map/map.c @@ -3233,7 +3233,7 @@ static int char_ip_set = 0; *------------------------------------------ */ int parse_console(char *buf) { - char type[64],command[64],map[64], buf2[72]; + char type[64],command[64],map[64]; int x = 0, y = 0; int m, n; struct map_session_data sd; @@ -3263,8 +3263,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 ( strcmpi("admin",type) == 0 && n == 5 ) { - sprintf(buf2,"console: %s",command); - if( is_atcommand(sd.fd,&sd,buf2,99) == AtCommand_None ) + if( atcommand_sub(sd.fd,&sd,command,99) == AtCommand_None ) printf("Console: not atcommand\n"); } else if ( strcmpi("server",type) == 0 && n == 2 ) { if ( strcmpi("shutdown", command) == 0 || strcmpi("exit",command) == 0 || strcmpi("quit",command) == 0 ) { -- cgit v1.2.3-60-g2f50