From 2c3218b05667ad539f3f309f1a89361fdb1a8aad Mon Sep 17 00:00:00 2001 From: Elvaron Date: Fri, 21 Dec 2012 00:16:18 +0100 Subject: FallBack for missing config property --- Essentials/src/com/earth2me/essentials/Settings.java | 5 +++++ 1 file changed, 5 insertions(+) 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 _getSocialSpyCommands() { Set socialspyCommands = new HashSet(); + + 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)); -- cgit v1.2.3