From a1206f0fb52f3f3555c4eaf68c3bec15bd37552b Mon Sep 17 00:00:00 2001 From: Robert Brinton Date: Tue, 1 Nov 2011 14:20:32 -0600 Subject: [PATCH] getBanInformation must return null for not found The ebaninfo command expects a null return for not found. The yaml implmentation does, the sql implementation never did. This caused all players to report as 'banned' by ebaininfo --- src/uk/org/whoami/easyban/datasource/SQLDataSource.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/uk/org/whoami/easyban/datasource/SQLDataSource.java b/src/uk/org/whoami/easyban/datasource/SQLDataSource.java index ccceea7..c3c0196 100644 --- a/src/uk/org/whoami/easyban/datasource/SQLDataSource.java +++ b/src/uk/org/whoami/easyban/datasource/SQLDataSource.java @@ -648,6 +648,9 @@ public synchronized HashMap getBanInformation(Subnet subnet) { } } + if (map.isEmpty()){ + return null; + } return map; } }