diff options
author | ElgarL <ElgarL@palmergames.com> | 2011-11-04 18:12:37 +0000 |
---|---|---|
committer | ElgarL <ElgarL@palmergames.com> | 2011-11-04 18:12:37 +0000 |
commit | bf78620b5d5699e7eff5ae16089f435b1f460390 (patch) | |
tree | 347dd27d565f0837a337d7525bcc334d263e50ac /EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java | |
parent | 5086c2e4b7a86b2f72f44a74bc7c5a3bfe6f5eb0 (diff) | |
download | Essentials-bf78620b5d5699e7eff5ae16089f435b1f460390.tar Essentials-bf78620b5d5699e7eff5ae16089f435b1f460390.tar.gz Essentials-bf78620b5d5699e7eff5ae16089f435b1f460390.tar.lz Essentials-bf78620b5d5699e7eff5ae16089f435b1f460390.tar.xz Essentials-bf78620b5d5699e7eff5ae16089f435b1f460390.zip |
Fix string compares
Diffstat (limited to 'EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java')
-rw-r--r-- | EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java b/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java index 85b69f101..ee1623bed 100644 --- a/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java +++ b/EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java @@ -121,7 +121,7 @@ public class User extends DataUnit implements Cloneable { String defaultGroupName = getDataSource().getDefaultGroup().getName(); // if we are not in the default group // or we are in the default group and the move is to a different group. - boolean notify = (this.group != defaultGroupName) || ((this.group == defaultGroupName) && (group.getName() != defaultGroupName)) ; + boolean notify = (!this.group.equalsIgnoreCase(defaultGroupName)) || ((this.group.equalsIgnoreCase(defaultGroupName)) && (!group.getName().equalsIgnoreCase(defaultGroupName))) ; this.group = group.getName(); flagAsChanged(); if (GroupManager.isLoaded()) { |