summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElvaron <jonas.janus@googlemail.com>2012-12-21 00:16:18 +0100
committerElvaron <jonas.janus@googlemail.com>2012-12-21 00:16:18 +0100
commit2c3218b05667ad539f3f309f1a89361fdb1a8aad (patch)
treeb7c79e8ca37b79d60a675b56546a4c2e20d8af99
parent0e2e8e16afd03c178885c9208beda8502e023517 (diff)
downloadEssentials-2c3218b05667ad539f3f309f1a89361fdb1a8aad.tar
Essentials-2c3218b05667ad539f3f309f1a89361fdb1a8aad.tar.gz
Essentials-2c3218b05667ad539f3f309f1a89361fdb1a8aad.tar.lz
Essentials-2c3218b05667ad539f3f309f1a89361fdb1a8aad.tar.xz
Essentials-2c3218b05667ad539f3f309f1a89361fdb1a8aad.zip
FallBack for missing config property
-rw-r--r--Essentials/src/com/earth2me/essentials/Settings.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/Essentials/src/com/earth2me/essentials/Settings.java b/Essentials/src/com/earth2me/essentials/Settings.java
index 71cee631c..2ad5a444c 100644
--- a/Essentials/src/com/earth2me/essentials/Settings.java
+++ b/Essentials/src/com/earth2me/essentials/Settings.java
@@ -243,6 +243,11 @@ public class Settings implements ISettings
public Set<String> _getSocialSpyCommands()
{
Set<String> socialspyCommands = new HashSet<String>();
+
+ if (!config.hasProperty("socialspy-commands")) {
+ socialspyCommands.addAll(Arrays.asList("msg", "r", "mail", "m", "whisper", "emsg", "t", "tell", "er", "reply", "ereply", "email", "action", "describe", "eme", "eaction", "edescribe", "etell", "ewhisper", "pm"));
+ }
+
for (String c : config.getStringList("socialspy-commands"))
{
socialspyCommands.add(c.toLowerCase(Locale.ENGLISH));