summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-03 16:45:06 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-03 16:45:06 +0000
commit2a1f2cb2842f87c982e01153255a67abb1abf29a (patch)
tree9a51cb31d821fa7526288ad6963dcc0fb09dff3e
parent38cf4948277cc3283a47d662b77f5a599e0455a3 (diff)
downloadhercules-2a1f2cb2842f87c982e01153255a67abb1abf29a.tar.gz
hercules-2a1f2cb2842f87c982e01153255a67abb1abf29a.tar.bz2
hercules-2a1f2cb2842f87c982e01153255a67abb1abf29a.tar.xz
hercules-2a1f2cb2842f87c982e01153255a67abb1abf29a.zip
Follow up r15343, added trimming to each individual aliases, allows the following:
BEFORE: aliases had to be [wat,wut] with no spacing NOW: spacing is trimmed, you can for example [ wat , wut ] git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15357 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/atcommand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c
index a546e4b9b..6802bdbcd 100644
--- a/src/map/atcommand.c
+++ b/src/map/atcommand.c
@@ -9254,7 +9254,7 @@ void atcommand_parse_aliases(char aliases[1024],AtCommandInfo* base) {
for(i = 0; i < max;i++) {
AtCommandInfo* atcommand;
-
+ normalize_name(str[i]," ");//trim over
if( strdb_exists(atcommand_db, str[i]) ) {
ShowError("atcommand_conf: duplicate alises error: %s (from %s)\n",str[i],base->command);
continue;