Selaa lähdekoodia

Revert [4098]. Req [DP7331].

JIV 15 vuotta sitten
vanhempi
sitoutus
92609a91cc

+ 2 - 2
L2_GameServer/java/com/l2jserver/gameserver/handler/BypassHandler.java

@@ -51,7 +51,7 @@ public class BypassHandler
 			if (Config.DEBUG)
 				_log.log(Level.FINE, "Adding handler for command " + element);
 
-			_datatable.put(element.hashCode(), handler);
+			_datatable.put(element.toLowerCase().hashCode(), handler);
 		}
 	}
 
@@ -67,7 +67,7 @@ public class BypassHandler
 		if (Config.DEBUG)
 			_log.log(Level.FINE, "getting handler for command: " + command + " -> " + (_datatable.get(command.hashCode()) != null));
 
-		return _datatable.get(command.hashCode());
+		return _datatable.get(command.toLowerCase().hashCode());
 	}
 
 	public int size()