summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-16 15:26:27 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-11-16 15:26:27 +0000
commit1e96fe7d63e6ec25cad98a5b1bef1b81e2c00fb6 (patch)
treec0ae3c85530ad4ea4c6d1e02776427dfb245004a /src/map/map.c
parentb8bec28b62db49329ca30bf5d04b37c40cb147ea (diff)
downloadhercules-1e96fe7d63e6ec25cad98a5b1bef1b81e2c00fb6.tar.gz
hercules-1e96fe7d63e6ec25cad98a5b1bef1b81e2c00fb6.tar.bz2
hercules-1e96fe7d63e6ec25cad98a5b1bef1b81e2c00fb6.tar.xz
hercules-1e96fe7d63e6ec25cad98a5b1bef1b81e2c00fb6.zip
* 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
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c5
1 files changed, 2 insertions, 3 deletions
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 ) {