]> jfr.im git - irc/rizon/acid.git/commitdiff
Do not set vhosts for users that do not have or deserve them
authorOrillion <redacted>
Sun, 16 Apr 2017 21:22:47 +0000 (23:22 +0200)
committerOrillion <redacted>
Sun, 16 Apr 2017 21:22:47 +0000 (23:22 +0200)
vizon/src/main/java/net/rizon/acid/plugins/vizon/VhostManager.java

index 5c3a8bbfcd8ea487eba0cbc230ea48d0b4ef7a4e..50e720a287c792dd8647e8ff416991f591f2d98a 100644 (file)
@@ -89,7 +89,7 @@ public class VhostManager
 
                VizonUser u = Vizon.getVizonDatabase().findUser(user.getNick());
 
-               if (u == null)
+               if (u == null || u.getVhost() == null || u.getObtained() == null)
                {
                        return;
                }