X-Git-Url: https://jfr.im/git/irc/quakenet/qwebirc.git/blobdiff_plain/3bf9d70e994874a792f87fa52c20d195a3b598b3..256032f4d1c6be9119fff7b3b2acdce995dcc9b0:/js/ui/baseui.js diff --git a/js/ui/baseui.js b/js/ui/baseui.js index 1a5c580..aa0f704 100644 --- a/js/ui/baseui.js +++ b/js/ui/baseui.js @@ -47,6 +47,14 @@ qwebirc.ui.BaseUI = new Class({ document.addEvent("focus", focus); window.addEvent("focus", focus); } + + qwebirc.util.__log = function(x) { + if(QWEBIRC_DEBUG) { + if(typeof console != "undefined") + console.log(x); + this.getActiveWindow().addLine(null, x); + } + }.bind(this); }, newClient: function(client) { client.id = this.clientId++; @@ -59,7 +67,7 @@ qwebirc.ui.BaseUI = new Class({ if(!this.firstClient) { this.firstClient = true; w.addLine("", "qwebirc v" + qwebirc.VERSION); - w.addLine("", "Copyright (C) 2008-2012 Chris Porter and the qwebirc project."); + w.addLine("", "Copyright (C) 2008-2014 Chris Porter and the qwebirc project."); w.addLine("", "http://www.qwebirc.org"); w.addLine("", "Licensed under the GNU General Public License, Version 2."); }