summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKHobbits <rob@khobbits.co.uk>2013-06-26 00:51:51 -0700
committerKHobbits <rob@khobbits.co.uk>2013-06-26 00:51:51 -0700
commit96cf3635676c2f6130d1744e3c8c273a18149b77 (patch)
tree5088ef1bc42cae8269bf57753417da16e52fb2df
parent3de3f00b11ad2b245dc8c697c42f5c6def20c564 (diff)
parentcfc6ed93641621f41dd17830506b56dc460d2499 (diff)
downloadEssentials-96cf3635676c2f6130d1744e3c8c273a18149b77.tar
Essentials-96cf3635676c2f6130d1744e3c8c273a18149b77.tar.gz
Essentials-96cf3635676c2f6130d1744e3c8c273a18149b77.tar.lz
Essentials-96cf3635676c2f6130d1744e3c8c273a18149b77.tar.xz
Essentials-96cf3635676c2f6130d1744e3c8c273a18149b77.zip
Merge pull request #504 from necrodoom/patch-30
[Fix] Fix socialspy toggle with no on/off param.
-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);