summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGepard <Gepard@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-06-20 20:11:13 +0000
committerGepard <Gepard@54d463be-8e91-2dee-dedb-b68131a5f0ec>2010-06-20 20:11:13 +0000
commitb694548b8bede213d9d5d3a37ecabe005a25bcf3 (patch)
tree6eaa5c58c037027729e508523f8789620b55e4a2 /src
parent0662963bcc62e5aea1414753a3d15fe6594a39a2 (diff)
downloadhercules-b694548b8bede213d9d5d3a37ecabe005a25bcf3.tar.gz
hercules-b694548b8bede213d9d5d3a37ecabe005a25bcf3.tar.bz2
hercules-b694548b8bede213d9d5d3a37ecabe005a25bcf3.tar.xz
hercules-b694548b8bede213d9d5d3a37ecabe005a25bcf3.zip
Fixed codepage indicators being included in NPCs' whispervars. (bugreport:4325)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14349 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/map/clif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 9ec2f9cfb..bd7af7eb3 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9031,6 +9031,9 @@ void clif_parse_WisMessage(int fd, struct map_session_data* sd)
char output[256];
str = message;
+ // skip codepage indicator, if detected
+ if( str[0] == '|' && strlen(str) >= 4 )
+ str += 3;
for( i = 0; i < 10; ++i )
{// Splits the message using '#' as separators
split = strchr(str,'#');