result = source.getString("formatting." + eventType, null);
return result;
}
protected boolean cEvents(String eventType, int bot, String channel) {
ConfigurationNode source = null;
boolean def = eventType.equalsIgnoreCase("game-to-irc.all-chat")
|| eventType.equalsIgnoreCase("irc-to-game.all-chat");
if (channel != null)
source = getChanNode(bot, channel);
if ((source == null || source.getProperty("events." + eventType) == null) && bot > -1)
source = bots.get(bot);
if (source == null || source.getProperty("events." + eventType) == null)
return configuration.getBoolean("settings.events." + eventType, def);
else
return source.getBoolean("events." + eventType, false);
}