소스 검색

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

changes/33/733/1
Chris Smith 15 년 전
부모
커밋
cc078694da
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2
    4
      src/com/dmdirc/Server.java

+ 2
- 4
src/com/dmdirc/Server.java 파일 보기

@@ -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…
취소
저장