summaryrefslogtreecommitdiffstats
path: root/EssentialsGroupManager
diff options
context:
space:
mode:
authorElgarL <ElgarL@palmergames.com>2011-11-04 18:12:37 +0000
committerElgarL <ElgarL@palmergames.com>2011-11-04 18:12:37 +0000
commit269947bdae7b0f0ad8bdef701f47e379c5be3c27 (patch)
tree36acc954b285b01642c050fbbbe93ddce873b04f /EssentialsGroupManager
parent4ac5551c6bc97794389026259614303d7d8da662 (diff)
downloadEssentials-269947bdae7b0f0ad8bdef701f47e379c5be3c27.tar
Essentials-269947bdae7b0f0ad8bdef701f47e379c5be3c27.tar.gz
Essentials-269947bdae7b0f0ad8bdef701f47e379c5be3c27.tar.lz
Essentials-269947bdae7b0f0ad8bdef701f47e379c5be3c27.tar.xz
Essentials-269947bdae7b0f0ad8bdef701f47e379c5be3c27.zip
Fix string compares
Diffstat (limited to 'EssentialsGroupManager')
-rw-r--r--EssentialsGroupManager/src/org/anjocaido/groupmanager/data/User.java2
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()) {