|
@@ -38,13 +38,13 @@ import com.dmdirc.commandline.CommandLineOptionsModule.Directory;
|
38
|
38
|
import com.dmdirc.commandline.CommandLineOptionsModule.DirectoryType;
|
39
|
39
|
import com.dmdirc.commandparser.parsers.GlobalCommandParser;
|
40
|
40
|
import com.dmdirc.events.ServerCtcpEvent;
|
|
41
|
+import com.dmdirc.events.UserErrorEvent;
|
41
|
42
|
import com.dmdirc.interfaces.CommandController;
|
42
|
43
|
import com.dmdirc.interfaces.Connection;
|
43
|
44
|
import com.dmdirc.interfaces.config.AggregateConfigProvider;
|
44
|
45
|
import com.dmdirc.interfaces.config.ConfigProvider;
|
45
|
46
|
import com.dmdirc.interfaces.config.IdentityController;
|
46
|
47
|
import com.dmdirc.logger.ErrorLevel;
|
47
|
|
-import com.dmdirc.logger.Logger;
|
48
|
48
|
import com.dmdirc.messages.MessageSinkManager;
|
49
|
49
|
import com.dmdirc.parser.interfaces.ClientInfo;
|
50
|
50
|
import com.dmdirc.parser.interfaces.Parser;
|
|
@@ -655,16 +655,16 @@ public class DCCManager {
|
655
|
655
|
"receive.savelocation"));
|
656
|
656
|
if (dir.exists()) {
|
657
|
657
|
if (!dir.isDirectory()) {
|
658
|
|
- Logger.userError(ErrorLevel.LOW,
|
659
|
|
- "Unable to create download dir (file exists instead)");
|
|
658
|
+ eventBus.post(new UserErrorEvent(ErrorLevel.LOW, null,
|
|
659
|
+ "Unable to create download dir (file exists instead)", ""));
|
660
|
660
|
}
|
661
|
661
|
} else {
|
662
|
662
|
try {
|
663
|
663
|
dir.mkdirs();
|
664
|
664
|
dir.createNewFile();
|
665
|
665
|
} catch (IOException ex) {
|
666
|
|
- Logger.userError(ErrorLevel.LOW,
|
667
|
|
- "Unable to create download dir");
|
|
666
|
+ eventBus.post(new UserErrorEvent(ErrorLevel.LOW, null,
|
|
667
|
+ "Unable to create download dir", ""));
|
668
|
668
|
}
|
669
|
669
|
}
|
670
|
670
|
|