summaryrefslogtreecommitdiff
path: root/src/map/charcommand.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-02 18:22:37 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-12-02 18:22:37 +0000
commitdab02fd8dd9f4836be4577599442a782d314c37b (patch)
treeb205a53cc06f677dfcc7934b40249be3ba9f00c9 /src/map/charcommand.c
parent6820eb4e95c79cc9db4511807b99fba61cd698ed (diff)
downloadhercules-dab02fd8dd9f4836be4577599442a782d314c37b.tar.gz
hercules-dab02fd8dd9f4836be4577599442a782d314c37b.tar.bz2
hercules-dab02fd8dd9f4836be4577599442a782d314c37b.tar.xz
hercules-dab02fd8dd9f4836be4577599442a782d314c37b.zip
* 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
Diffstat (limited to 'src/map/charcommand.c')
-rw-r--r--src/map/charcommand.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/charcommand.c b/src/map/charcommand.c
index 0b6bd8c60..df45d2e4e 100644
--- a/src/map/charcommand.c
+++ b/src/map/charcommand.c
@@ -190,6 +190,7 @@ is_charcommand(const int fd, struct map_session_data* sd, const char* message) {
s_flag = 1;
str++;
}
+
if (!*str)
return CharCommand_None;
@@ -212,7 +213,7 @@ CharCommandType charcommand(struct map_session_data* sd, const int level, const
return CharCommand_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(CharCommandInfo));