Clan name

Issue #236 resolved
Darkloud91 created an issue

Creating a Clan, the input accept spaces char. retail give you a error.

Comments (8)

  1. George Spatacean

    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?"

  2. Darkloud91 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".

  3. George Spatacean

    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;
    
  4. Log in to comment