diff options
author | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-09 20:21:17 +0000 |
---|---|---|
committer | FlavioJS <FlavioJS@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-09 20:21:17 +0000 |
commit | e0a18f0853dd7a0cf0533ae0d10da9d19b116767 (patch) | |
tree | 2f0adc6661ce4597106033a18e33d8e774a76459 /src/char | |
parent | faf6d705ec5b1f8a95a06d31635704adefcca99b (diff) | |
download | hercules-e0a18f0853dd7a0cf0533ae0d10da9d19b116767.tar.gz hercules-e0a18f0853dd7a0cf0533ae0d10da9d19b116767.tar.bz2 hercules-e0a18f0853dd7a0cf0533ae0d10da9d19b116767.tar.xz hercules-e0a18f0853dd7a0cf0533ae0d10da9d19b116767.zip |
* Recoded and renamed the trim function in strlib to normalize_name. (didn't behave like a standard trim function, see function comment for what it does)
* Added a proper trim function to strlib.
* Other minor cleanups.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10199 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/char')
-rw-r--r-- | src/char/char.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c index 705579fbf..0d888f399 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -1118,7 +1118,7 @@ int make_new_char(int fd, unsigned char *dat) { strncpy(name, dat, NAME_LENGTH); name[NAME_LENGTH-1] = '\0'; //Trunc name to max possible value (23) - trim(name,TRIM_CHARS); //Trim character name. [Skotlex] + normalize_name(name,TRIM_CHARS);//Normalize character name. [Skotlex] //check name != main chat nick [LuzZza] if(strcmpi(name, main_chat_nick) == 0) { |