@@ -47,6 +47,17 @@ public class SIBConfig {
4747 private final static String COMMENT_ircTLS = "Whether TLS/SSL is enabled. Set to 'false' for a plaintext connection" ;
4848 /* package */ final boolean ircTLS ;
4949 private final static boolean DEFAULT_ircTLS = true ;
50+
51+ private final static String KEY_ircFormatting = "ircFormatting" ;
52+ private final static String COMMENT_ircFormatting = "Whether minecraft formatting should be converted to IRC formatting." ;
53+ /* package */ final boolean ircFormatting ;
54+ private final static boolean DEFAULT_ircFormatting = true ;
55+
56+ private final static String KEY_mcFormatting = "mcFormatting" ;
57+ private final static String COMMENT_mcFormatting = "Whether IRC formatting should be converted to Minecraft formatting." ;
58+ /* package */ final boolean mcFormatting ;
59+ private final static boolean DEFAULT_mcFormatting = true ;
60+
5061
5162 /** gets all SIB properties. load/save is needs to be handled by caller */
5263 public SIBConfig (Configuration conf ) {
@@ -60,6 +71,8 @@ public SIBConfig(Configuration conf) {
6071 this .ircChannel = conf .getString (KEY_ircChannel , CAT_IRC , DEFAULT_ircChannel , COMMENT_ircChannel );
6172 this .ircPort = conf .getInt (KEY_ircPort , CAT_IRC , DEFAULT_ircPort , MIN_ircPort , MAX_ircPort , COMMENT_ircPort );
6273 this .ircTLS = conf .getBoolean (KEY_ircTLS , CAT_IRC , DEFAULT_ircTLS , COMMENT_ircTLS );
74+ this .ircFormatting = conf .getBoolean (KEY_ircFormatting , CAT_IRC , DEFAULT_ircFormatting , COMMENT_ircFormatting );
75+ this .mcFormatting = conf .getBoolean (KEY_mcFormatting , CAT_IRC , DEFAULT_mcFormatting , COMMENT_mcFormatting );
6376 conf .setCategoryRequiresMcRestart (CAT_IRC , true );
6477 }
6578}
0 commit comments