Browse Source

Switch to event bug logging in DCC plugin.

Change-Id: I2ef12247010aec00ee9e7da74a5fb85453495745
Reviewed-on: http://gerrit.dmdirc.com/3653
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com>
changes/53/3653/2
Greg Holmes 9 years ago
parent
commit
84ac4c964f
1 changed files with 5 additions and 5 deletions
  1. 5
    5
      src/com/dmdirc/addons/dcc/DCCManager.java

+ 5
- 5
src/com/dmdirc/addons/dcc/DCCManager.java View File

@@ -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
 

Loading…
Cancel
Save