Fix compilation, YUI doesn't like files without newlines at the end.
make pretty again.\r
-swmui window bug\r
del /q compiled\*.js\r
\r
cd js\r
-copy qwebirc.js version.js + jslib.js + irc\ircconnection.js + irc\irclib.js + irc\baseircclient.js + irc\irctracker.js + irc\commandparser.js + irc\ircclient.js + ui\baseui.js + ui\baseuiwindow.js + ui\colour.js + ui\url.js + ui\theme.js + ui\genericlogin.js + ui\embedwizard.js + qwebircinterface.js + irc\commandhistory.js ..\compiled\qwebirc-concat.js /b\r
+copy qwebirc.js + version.js + jslib.js + irc\ircconnection.js + irc\irclib.js + irc\baseircclient.js + irc\irctracker.js + irc\commandparser.js + irc\ircclient.js + ui\baseui.js + ui\baseuiwindow.js + ui\colour.js + ui\url.js + ui\theme.js + ui\genericlogin.js + ui\embedwizard.js + qwebircinterface.js + irc\commandhistory.js ..\compiled\qwebirc-concat.js /b\r
copy ui\swmui.js + ui\swmlayout.js ..\compiled\swmui-concat.js /b\r
cd ..\compiled\r
\r
return true;
},
irc_RPL_NOTOPIC: function(prefix, params) {
- return true;
+ var channel = params[1];
+
+ if(this.channels[channel]) {
+ this.initialTopic(channel, "");
+ return true;
+ }
},
irc_RPL_TOPIC: function(prefix, params) {
var channel = params[1];
if(this.lastactiverequest) {
this.lastactiverequest.cancel();
this.lastactiverequest = null;
- alert("warning: last active request");
}
if(this.activerequest) {
this.lastactiverequest = this.activerequest;
var r = new Request.JSON({url: "/e/n?nick=" + encodeURIComponent(this.initialNickname) + "&r=" + Math.random() * 1024 * 1024, onComplete: function(o) {
if(!o) {
this.disconnected = true;
- alert("Couldn't connect to remote server.");
+ this.__error("Couldn't connect to remote server.");
return;
}
if(o[0] == false) {
qwebirc.irc.IRCDate = function(d) {
return qwebirc.util.DaysOfWeek[d.getDay()] + " " + qwebirc.util.MonthsOfYear[d.getMonth()] + " " + pad(d.getDate()) + " " + pad(d.getHours()) + ":" + pad(d.getMinutes()) + ":" + pad(d.getSeconds()) + " " + d.getFullYear();
-}
\ No newline at end of file
+}
chan.set("value", initialChannels);
nick.focus();
-}
\ No newline at end of file
+}
while(t.firstChild)
t.removeChild(t.firstChild);
- Colourise(topic, t);
+ qwebirc.ui.Colourise(topic, t);
},
addLine: function(type, line, colour) {
var e = new Element("div");
t.removeChild(t.firstChild);
if(topic) {
- Colourise("[" + topic + "]", t);
+ qwebirc.ui.Colourise("[" + topic + "]", t);
} else {
var e = new Element("div");
e.set("text", "(no topic set)");
this.parent(topic);
this.topic.removeAllChildren();
- Colourise(topic, this.topic.element);
+ qwebirc.ui.Colourise(topic, this.topic.element);
this.parentObject.resize();
},
while(t.firstChild)
t.removeChild(t.firstChild);
- Colourise(topic, t);
+ qwebirc.ui.Colourise(topic, t);
},
select: function() {
this.parent();