]> jfr.im git - irc/quakenet/qwebirc.git/commitdiff
Add version number to first window.
authorChris Porter <redacted>
Thu, 10 Jul 2008 23:20:31 +0000 (00:20 +0100)
committerChris Porter <redacted>
Thu, 10 Jul 2008 23:20:31 +0000 (00:20 +0100)
js/ui/baseui.js

index 08a28cdcf361d8f75135f85c73217563287f39e2..e342a25faa72b27b8cd6e4ac8d3f1e79b215e38b 100644 (file)
@@ -42,12 +42,17 @@ var UI = new Class({
     this.parentElement = parentElement;
     this.parentElement.addClass("qwebirc");
     this.parentElement.addClass("qwebirc-" + uiName);
+    this.firstClient = false;
   },
   newClient: function(client) {
     this.windows[client] = {}
     var w = this.newWindow(client, WINDOW_STATUS, "Status");
     this.selectWindow(w);
-    
+    if(!this.firstClient) {
+      this.firstClient = true;
+      w.addLine("", "qwebirc v" + QWEBIRC_VERSION + " -- Copyright (C) 2008 Chris Porter. All rights reserved.");
+      w.addLine("", "http://webchat.quakenet.org/");
+    }
     return w;
   },
   newWindow: function(client, type, name) {