this.UID = UID;
this.ip = ip;
// Check if this IP isn't spoofed.
- if (!this.ip.equals("255.255.255.255") && !this.ip.equals("0"))
+ if (!isSpoofed())
{
// Cloak IP if IP is visible host, else cloak hostname.
this.cloakedIp = Acidictive.cloakGenerator.cloak(this.ip);
this.getServer().incUsers();
}
+ public final boolean isSpoofed()
+ {
+ return this.ip.equals("255.255.255.255") || this.ip.equals("0");
+ }
+
public void onQuit()
{
for (Iterator<Channel> it = chanList.iterator(); it.hasNext();)