Explorar o código

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://svn.code.sf.net/p/rathena/svn/trunk@15357 54d463be-8e91-2dee-dedb-b68131a5f0ec

shennetsind %!s(int64=13) %!d(string=hai) anos
pai
achega
66546a794e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/map/atcommand.c

+ 1 - 1
src/map/atcommand.c

@@ -9254,7 +9254,7 @@ void atcommand_parse_aliases(char aliases[1024],AtCommandInfo* base) {
 
 
 	for(i = 0; i < max;i++) {
 	for(i = 0; i < max;i++) {
 		AtCommandInfo* atcommand;
 		AtCommandInfo* atcommand;
-
+		normalize_name(str[i]," ");//trim over
 		if( strdb_exists(atcommand_db, str[i]) ) {
 		if( strdb_exists(atcommand_db, str[i]) ) {
 			ShowError("atcommand_conf: duplicate alises error: %s (from %s)\n",str[i],base->command);
 			ShowError("atcommand_conf: duplicate alises error: %s (from %s)\n",str[i],base->command);
 			continue;
 			continue;