Browse Source

Numerics with no applicable formatters can now be formatted by actions/plugins

changes/33/733/1
Chris Smith 15 years ago
parent
commit
cc078694da
1 changed files with 2 additions and 4 deletions
  1. 2
    4
      src/com/dmdirc/Server.java

+ 2
- 4
src/com/dmdirc/Server.java View File

@@ -1281,7 +1281,7 @@ public class Server extends WritableFrameContainer implements
1281 1281
 
1282 1282
         final String withIrcd = "numeric_" + parser.getServerSoftwareType() + "_" + snumeric;
1283 1283
         final String sansIrcd = "numeric_" + snumeric;
1284
-        StringBuffer target = null;
1284
+        StringBuffer target = new StringBuffer("");
1285 1285
 
1286 1286
         if (getConfigManager().hasOptionString("formatter", withIrcd)) {
1287 1287
             target = new StringBuffer(withIrcd);
@@ -1294,9 +1294,7 @@ public class Server extends WritableFrameContainer implements
1294 1294
         ActionManager.processEvent(CoreActionType.SERVER_NUMERIC, target, this,
1295 1295
                 Integer.valueOf(numeric), tokens);
1296 1296
 
1297
-        if (target != null) {
1298
-            handleNotification(target.toString(), (Object[]) tokens);
1299
-        }
1297
+        handleNotification(target.toString(), (Object[]) tokens);
1300 1298
     }
1301 1299
 
1302 1300
     /**

Loading…
Cancel
Save