]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - js/ui/baseuiwindow.js
Add command history.
[irc/quakenet/qwebirc.git] / js / ui / baseuiwindow.js
index fe36b9352eac831e5a58e6eef7380766ab64c916..eab089a2ee837c9788c71d4ff58a0be37ac67f81 100644 (file)
@@ -9,6 +9,8 @@ var UIWindow = new Class({
     this.identifier = identifier;
     this.hilighted = false;
     this.scrolltimer = null;
+    this.commandhistory = this.parentObject.commandhistory;
+    //new CommandHistory();
   },
   updateNickList: function(nicks) {
   },
@@ -72,5 +74,9 @@ var UIWindow = new Class({
       scrollparent.scrollTo(prev.x, parent.getScrollSize().y);
       this.scrolltimer = null;
     }
+  },
+  historyExec: function(line) {
+    this.commandhistory.addLine(line);
+    this.client.exec(line);
   }
 });