qwebirc.irc.RegisteredCTCPs = {
"VERSION": function(x) {
- return "qwebirc v" + qwebirc.VERSION + ", copyright (C) 2008-2012 Chris Porter and the qwebirc project -- " + qwebirc.util.browserVersion();
+ return "qwebirc v" + qwebirc.VERSION + ", copyright (C) 2008-2014 Chris Porter and the qwebirc project -- transport: " + this.connection.transportStatus + " -- " + qwebirc.util.browserVersion();
},
"USERINFO": function(x) { return "qwebirc"; },
"TIME": function(x) { return qwebirc.irc.IRCDate(new Date()); },
var replyfn = qwebirc.irc.RegisteredCTCPs[type];
if(replyfn) {
var t = new Date().getTime() / 1000;
- if(t > this.nextctcp)
- this.send("NOTICE " + user.hostToNick() + " :\x01" + type + " " + replyfn(ctcp[1]) + "\x01");
- this.nextctcp = t + 5;
+ if(t > this.nextctcp) {
+ this.send("NOTICE " + user.hostToNick() + " :\x01" + type + " " + replyfn.call(this, ctcp[1]) + "\x01");
+ this.nextctcp = t + 10;
+ }
}
if(target == this.nickname) {