summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNecrodoom <doomed.war@gmail.com>2013-06-26 09:56:56 +0300
committerNecrodoom <doomed.war@gmail.com>2013-06-26 09:56:56 +0300
commit4e46879a4e910c5236bfd946e80c8b6aaca38d68 (patch)
tree0bdc76fdd3d84cc19e3b084b9a5600343c932c76
parentfb654d6d2f39a5c93c0fe897201d5b9a9011e87f (diff)
downloadEssentials-4e46879a4e910c5236bfd946e80c8b6aaca38d68.tar
Essentials-4e46879a4e910c5236bfd946e80c8b6aaca38d68.tar.gz
Essentials-4e46879a4e910c5236bfd946e80c8b6aaca38d68.tar.lz
Essentials-4e46879a4e910c5236bfd946e80c8b6aaca38d68.tar.xz
Essentials-4e46879a4e910c5236bfd946e80c8b6aaca38d68.zip
fix socialspy toggles
-rw-r--r--Essentials/src/com/earth2me/essentials/commands/Commandsocialspy.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandsocialspy.java b/Essentials/src/com/earth2me/essentials/commands/Commandsocialspy.java
index 12cf46ecc..7796806b6 100644
--- a/Essentials/src/com/earth2me/essentials/commands/Commandsocialspy.java
+++ b/Essentials/src/com/earth2me/essentials/commands/Commandsocialspy.java
@@ -49,7 +49,7 @@ public class Commandsocialspy extends EssentialsToggleCommand
{
if (enabled == null)
{
- throw new NotEnoughArgumentsException();
+ enabled = !user.isSocialSpyEnabled();
}
user.setSocialSpyEnabled(enabled);