From dab02fd8dd9f4836be4577599442a782d314c37b Mon Sep 17 00:00:00 2001 From: Lance Date: Sat, 2 Dec 2006 18:22:37 +0000 Subject: * Enabled atcommand parsing for clients with Korean langtype and version. modified Changelog-Trunk.txt modified src/map/atcommand.c modified src/map/charcommand.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9393 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/atcommand.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/atcommand.c') diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 6289d6027..9c066556a 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -849,6 +849,7 @@ is_atcommand(const int fd, struct map_session_data* sd, const char* message) { s_flag = 1; str++; } + if (!*str) return AtCommand_None; @@ -871,7 +872,7 @@ AtCommandType atcommand(struct map_session_data* sd, const int level, const char return AtCommand_None; } - if (*p == command_symbol) { // check first char. + if (*p == command_symbol || (p[0] == '|' && p[3] == command_symbol)) { // check first char, try to skip |00 (or something else) [Lance] char command[101]; int i = 0; malloc_set(info, 0, sizeof(AtCommandInfo)); -- cgit v1.2.3-60-g2f50