+
+ if(!qwebirc.auth.loggedin()) {
+ var auth = new Element("input", {"type": "submit", "value": "Log in"});
+ td.appendChild(auth);
+ auth.addEvent("click", function(e) {
+ var cookie = Cookie.write("redirect", document.location);
+ document.location = "./auth/";
+ });
+ }