]> jfr.im git - irc/rizon/acid.git/commitdiff
Add method to check if user is identified
authorOrillion <redacted>
Sun, 27 Sep 2015 18:08:52 +0000 (20:08 +0200)
committerOrillion <redacted>
Tue, 27 Oct 2015 19:53:29 +0000 (20:53 +0100)
acid/src/main/java/net/rizon/acid/core/User.java

index 5d3ef64439a7339fadb47394e6de3f5a1dd13359..bce6975a98f4567da4ea077e3b1eb539d135051e 100644 (file)
@@ -438,6 +438,13 @@ public class User implements Comparable<User>
                }
                return "No nick changes.";
        }
+       
+       public boolean isIdentified()
+       {
+               if (this.hasMode("r"))
+                       return true;
+               return this.su != null && !this.su.equals("");
+       }
 
        // TODO: Fixme to make this either properly static or a "real" method
        // XXX ??????????????????????????????????? wtf is this