]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Fix channels in topics, and url's ending with ].
authorChris Porter <redacted>
Sat, 18 Oct 2008 23:52:17 +0000 (00:52 +0100)
committerChris Porter <redacted>
Sat, 18 Oct 2008 23:52:17 +0000 (00:52 +0100)
js/ui/baseuiwindow.js
js/ui/qui.js
js/ui/url.js

index 1c339cfb37ec22350e69b5108b0dc8563fadc955..b7b7683a049285110e1d7043d2eccfb1366bacc7 100644 (file)
@@ -15,7 +15,8 @@ qwebirc.ui.Window = new Class({
   },
   updateNickList: function(nicks) {
   },
-  updateTopic: function(topic)  {
+  updateTopic: function(topic, element)  {
+    qwebirc.ui.Colourise("[" + topic + "]", element, this.client.exec, this.parentObject.urlDispatcher.bind(this.parentObject));
   },
   close: function() {
     if($defined(this.scrolltimer)) {
index de0cbc278092e8056c2c5fef315a6cedb19b1096..21272b4781b04557b4d3f8a1c2c51b1e12c532c6 100644 (file)
@@ -268,15 +268,13 @@ qwebirc.ui.QUI.Window = new Class({
     });
   },
   updateTopic: function(topic) {
-    this.parent(topic);
-    
     var t = this.topic;
     
     while(t.firstChild)
       t.removeChild(t.firstChild);
 
     if(topic) {
-      qwebirc.ui.Colourise("[" + topic + "]", t);
+      this.parent(topic, t);
     } else {
       var e = new Element("div");
       e.set("text", "(no topic set)");
index f4cf2a640cf4865222f7ccf3c791ff4890107112..e58cc34383a86da77e8722d9dab86467261eb9c7 100644 (file)
@@ -1,5 +1,5 @@
 qwebirc.ui.urlificate = function(element, text, execfn, cmdfn) {
-  var punct_re = /(\.*|\,|;)$/;
+  var punct_re = /(\.*|\,|;|\])$/;
 
   var txtprocess = function(text, regex, appendfn, matchfn) {
     for(;;) {