Clan name
Issue #236
resolved
Creating a Clan, the input accept spaces char. retail give you a error.
Comments (8)
-
-
reporter i tested it on develop with the name "Shadow Order" and the game create a clan with name Shadow.On retail you get "Clan name is invalid".
-
Here is a patch to address this:
Index: src/main/java/com/l2jserver/gameserver/model/actor/instance/L2VillageMasterInstance.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== --- src/main/java/com/l2jserver/gameserver/model/actor/instance/L2VillageMasterInstance.java (revision 775bcf917d84c47c3a13073df122204a463a8527) +++ src/main/java/com/l2jserver/gameserver/model/actor/instance/L2VillageMasterInstance.java (revision ) @@ -106,8 +106,8 @@ if (st.hasMoreTokens()) { final String clanName = st.nextToken(); - - if (!isValidName(clanName)) + + if (st.hasMoreTokens() || !isValidName(clanName)) { player.sendPacket(SystemMessageId.CLAN_NAME_INCORRECT); return;
-
- attached Fix_for_Issue__236.patch
-
reporter thanks you
-
@Adry_85, @Zoey76 can you please review this patch and have it applied if all is good?
-
- changed status to resolved
Clan name should not include spaces
Reported by: Darkloud91 Patch by: george_spatacean
Fixes
#236→ <<cset 95fb9dcf6633>>
-
- Log in to comment
Tested this on develop, if you input "Clan Name", it will create a new clan named "Clan". Can you confirm? Also, what is the message that you get on retail ? "Clan name is invalid?"