Kaynağa Gözat

Unbreak some plugins

Change-Id: I40df067e571196bf31b5c7a7c224681ec2bf271c
Reviewed-on: http://gerrit.dmdirc.com/535
Automatic-Compile: Gregory Holmes <greboid@dmdirc.com>
Reviewed-by: Gregory Holmes <greboid@dmdirc.com>
tags/0.6.3
Chris Smith 14 yıl önce
ebeveyn
işleme
8e25541562

+ 7
- 0
src/com/dmdirc/addons/parser_twitter/Twitter.java Dosyayı Görüntüle

@@ -544,6 +544,12 @@ public class Twitter implements Parser, TwitterErrorHandler, TwitterRawHandler,
544 544
         return myAddress;
545 545
     }
546 546
 
547
+    /** {@inheritDoc} */
548
+    @Override
549
+    public String getChannelPrefixes() {
550
+        return "#&";
551
+    }
552
+
547 553
     /** {@inheritDoc} */
548 554
     @Override
549 555
     public boolean compareURI(final URI uri) {
@@ -1429,4 +1435,5 @@ public class Twitter implements Parser, TwitterErrorHandler, TwitterRawHandler,
1429 1435
         hide500Errors = getConfigManager().getOptionBool(myPlugin.getDomain(), "hide500Errors");
1430 1436
         debugEnabled = getConfigManager().getOptionBool(myPlugin.getDomain(), "debugEnabled");
1431 1437
     }
1438
+
1432 1439
 }

+ 3
- 1
src/com/dmdirc/addons/urlcatcher/UrlCatcherPlugin.java Dosyayı Görüntüle

@@ -22,6 +22,7 @@
22 22
 
23 23
 package com.dmdirc.addons.urlcatcher;
24 24
 
25
+import com.dmdirc.FrameContainer;
25 26
 import com.dmdirc.Raw;
26 27
 import com.dmdirc.actions.ActionManager;
27 28
 import com.dmdirc.actions.interfaces.ActionType;
@@ -84,7 +85,8 @@ public class UrlCatcherPlugin extends Plugin implements ActionListener,
84 85
             return;
85 86
         }
86 87
 
87
-        final String message = Styliser.doLinks((String) arguments[1]);
88
+        final String message = ((FrameContainer) arguments[0]).getStyliser()
89
+                .doLinks((String) arguments[1]);
88 90
         
89 91
         if (message.indexOf(Styliser.CODE_HYPERLINK) > -1) {
90 92
             final String[] parts = message.split("" + Styliser.CODE_HYPERLINK);

Loading…
İptal
Kaydet