|
@@ -27,6 +27,7 @@ import com.dmdirc.WritableFrameContainer;
|
27
|
27
|
import com.dmdirc.commandparser.CommandManager;
|
28
|
28
|
import com.dmdirc.commandparser.CommandType;
|
29
|
29
|
import com.dmdirc.commandparser.parsers.GlobalCommandParser;
|
|
30
|
+import com.dmdirc.config.ConfigManager;
|
30
|
31
|
|
31
|
32
|
/**
|
32
|
33
|
* DCC CommandParser.
|
|
@@ -41,9 +42,11 @@ public final class DCCCommandParser extends GlobalCommandParser {
|
41
|
42
|
|
42
|
43
|
/**
|
43
|
44
|
* Creates a new instance of the GlobalCommandParser.
|
|
45
|
+ *
|
|
46
|
+ * @param configManager Config manager
|
44
|
47
|
*/
|
45
|
|
- private DCCCommandParser() {
|
46
|
|
- super();
|
|
48
|
+ private DCCCommandParser(final ConfigManager configManager) {
|
|
49
|
+ super(configManager, CommandManager.getCommandManager());
|
47
|
50
|
}
|
48
|
51
|
|
49
|
52
|
/**
|
|
@@ -51,9 +54,9 @@ public final class DCCCommandParser extends GlobalCommandParser {
|
51
|
54
|
*
|
52
|
55
|
* @return The singleton DCCCommandParser
|
53
|
56
|
*/
|
54
|
|
- public static synchronized DCCCommandParser getDCCCommandParser() {
|
|
57
|
+ public static synchronized DCCCommandParser getDCCCommandParser(final ConfigManager configManager) {
|
55
|
58
|
if (me == null) {
|
56
|
|
- me = new DCCCommandParser();
|
|
59
|
+ me = new DCCCommandParser(configManager);
|
57
|
60
|
}
|
58
|
61
|
|
59
|
62
|
return me;
|