rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
e.user = new CIRCUser (this, e.params[2]); | e.user = new CIRCUser(this, null, e.params[2]); | function serv_312 (e){ e.user = new CIRCUser (this, e.params[2]); e.user.connectionHost = e.params[3]; e.destObject = this.parent; e.set = "network";} |
e.user = new CIRCUser (this, e.params[2]); | e.user = new CIRCUser(this, null, e.params[2]); | function serv_315 (e){ e.user = new CIRCUser (this, e.params[2]); e.destObject = this.parent; e.set = "network"; return true;} |
e.user = new CIRCUser (this, e.params[2]); | e.user = new CIRCUser(this, null, e.params[2]); | function serv_317 (e){ e.user = new CIRCUser (this, e.params[2]); e.user.idleSeconds = e.params[3]; e.destObject = this.parent; e.set = "network";} |
e.user = new CIRCUser(this, e.params[2]); | e.user = new CIRCUser(this, null, e.params[2]); | function serv_318(e){ e.user = new CIRCUser(this, e.params[2]); if ("pendingWhoisLines" in this) delete this.pendingWhoisLines; e.destObject = this.parent; e.set = "network";} |
e.user = new CIRCUser(this, e.params[2]); | e.user = new CIRCUser(this, null, e.params[2]); | function serv_319(e){ e.user = new CIRCUser(this, e.params[2]); e.destObject = this.parent; e.set = "network";} |
e.channel = new CIRCChannel (this, e.params[2]); | e.channel = new CIRCChannel(this, null, e.params[2]); | function serv_324 (e){ e.channel = new CIRCChannel (this, e.params[2]); e.destObject = this; e.type = "chanmode"; e.destMethod = "onChanMode"; return true;} |
e.channel = new CIRCChannel (this, e.params[2]); | e.channel = new CIRCChannel(this, null, e.params[2]); | function serv_329 (e){ e.channel = new CIRCChannel (this, e.params[2]); e.destObject = e.channel; e.set = "channel"; e.channel.timeStamp = new Date (Number(e.params[3]) * 1000); return true;} |
e.channel = new CIRCChannel (this, e.params[2]); | e.channel = new CIRCChannel(this, null, e.params[2]); | function serv_331 (e){ e.channel = new CIRCChannel (this, e.params[2]); e.channel.topic = ""; e.destObject = e.channel; e.set = "channel"; return true;} |
e.channel.topic = e.meat; | e.channel.topic = e.params[3]; | function serv_332 (e){ e.channel = new CIRCChannel (this, e.params[2]); e.channel.topic = e.meat; e.destObject = e.channel; e.set = "channel"; return true; } |
e.channel = new CIRCChannel (this, e.params[2]); | e.channel = new CIRCChannel(this, null, e.params[2]); | function serv_332 (e){ e.channel = new CIRCChannel (this, e.params[2]); e.channel.topic = toUnicode(e.params[3], e.channel); e.destObject = e.channel; e.set = "channel"; return true;} |
e.channel = new CIRCChannel (this, e.params[2]); e.channel.topicBy = e.params[3]; | e.channel = new CIRCChannel(this, null, e.params[2]); e.channel.topicBy = toUnicode(e.params[3], this); | function serv_333 (e){ e.channel = new CIRCChannel (this, e.params[2]); e.channel.topicBy = e.params[3]; e.channel.topicDate = new Date(Number(e.params[4]) * 1000); e.destObject = e.channel; e.set = "channel"; return true;} |
e.channel = new CIRCChannel (this, e.params[2]); | e.channel = new CIRCChannel(this, null, e.params[2]); | function serv_348(e){ e.channel = new CIRCChannel (this, e.params[2]); e.destObject = e.channel; e.set = "channel"; return true;} |
e.channel = new CIRCChannel (this, e.params[2]); | e.channel = new CIRCChannel(this, null, e.params[2]); | function serv_349(e){ e.channel = new CIRCChannel (this, e.params[2]); e.destObject = e.channel; e.set = "channel"; if ("pendingExceptList" in e.channel) setTimeout(function (){ delete e.channel.pendingExceptList; }, 0); return true;} |
e.user = new CIRCUser (this, e.params[6], e.params[3], e.params[4]); e.user.connectionHost = e.params[5]; if (8 in e.params) | e.userHasChanges = false; if (this.LIGHTWEIGHT_WHO) | function serv_352 (e){ e.user = new CIRCUser (this, e.params[6], e.params[3], e.params[4]); e.user.connectionHost = e.params[5]; if (8 in e.params) { var ary = e.params[8].match(/(?:\d+\s)?(.*)/); e.user.desc = fromUnicode(ary[1], e.user); } e.destObject = this.parent; e.set = "ne... |
var ary = e.params[8].match(/(?:\d+\s)?(.*)/); e.user.desc = fromUnicode(ary[1], e.user); | e.user = new CIRCUser(this, null, e.params[6]); | function serv_352 (e){ e.user = new CIRCUser (this, e.params[6], e.params[3], e.params[4]); e.user.connectionHost = e.params[5]; if (8 in e.params) { var ary = e.params[8].match(/(?:\d+\s)?(.*)/); e.user.desc = fromUnicode(ary[1], e.user); } e.destObject = this.parent; e.set = "ne... |
else { e.user = new CIRCUser(this, null, e.params[6], e.params[3], e.params[4]); e.user.connectionHost = e.params[5]; if (8 in e.params) { var ary = e.params[8].match(/(?:(\d+)\s)?(.*)/); e.user.hops = ary[1]; var desc = fromUnicode(ary[2], e.user); if (e.user.desc != desc) { e.userHasChanges = true; e.user.desc = desc... | function serv_352 (e){ e.user = new CIRCUser (this, e.params[6], e.params[3], e.params[4]); e.user.connectionHost = e.params[5]; if (8 in e.params) { var ary = e.params[8].match(/(?:\d+\s)?(.*)/); e.user.desc = fromUnicode(ary[1], e.user); } e.destObject = this.parent; e.set = "ne... | |
e.user.desc = ary[1]; | e.user.desc = fromUnicode(ary[1], e.user); | function serv_352 (e){ e.user = new CIRCUser (this, e.params[6], e.params[3], e.params[4]); e.user.connectionHost = e.params[5]; if (8 in e.params) { var ary = e.params[8].match(/(?:\d+\s)?(.*)/); e.user.desc = ary[1]; } e.destObject = this.parent; e.set = "network"; return tru... |
var nicks = e.meat.split (" "); | var nicks = e.params[4].split (" "); | function serv_353 (e){ e.channel = new CIRCChannel (this, e.params[3]); if (e.channel.usersStable) { e.channel.users = new Object(); e.channel.usersStable = false; } e.destObject = e.channel; e.set = "channel"; var nicks = e.meat.split (" "); for (var n in nicks) ... |
e.channel = new CIRCChannel (this, e.params[3]); | e.channel = new CIRCChannel(this, null, e.params[3]); | function serv_353 (e){ e.channel = new CIRCChannel (this, e.params[3]); if (e.channel.usersStable) { e.channel.users = new Object(); e.channel.usersStable = false; } e.destObject = e.channel; e.set = "channel"; var nicks = e.params[4].split (" "); var mList = this.userM... |
e.user = new CIRCChanUser (e.channel, nick.substr(1, nick.length), [ mList[m].mode ]); | e.user = new CIRCChanUser(e.channel, null, nick.substr(1, nick.length), [ mList[m].mode ]); | function serv_353 (e){ e.channel = new CIRCChannel (this, e.params[3]); if (e.channel.usersStable) { e.channel.users = new Object(); e.channel.usersStable = false; } e.destObject = e.channel; e.set = "channel"; var nicks = e.params[4].split (" "); var mList = this.userM... |
e.user = new CIRCChanUser (e.channel, nick, [ ]); | e.user = new CIRCChanUser(e.channel, null, nick, [ ]); | function serv_353 (e){ e.channel = new CIRCChannel (this, e.params[3]); if (e.channel.usersStable) { e.channel.users = new Object(); e.channel.usersStable = false; } e.destObject = e.channel; e.set = "channel"; var nicks = e.params[4].split (" "); var mList = this.userM... |
var found = false; for (var m in mList) | var modes = new Array(); do | function serv_353 (e){ e.channel = new CIRCChannel(this, null, e.params[3]); if (e.channel.usersStable) { e.channel.users = new Object(); e.channel.usersStable = false; } e.destObject = e.channel; e.set = "channel"; var nicks = e.params[4].split (" "); var mList = this.userModes; ... |
if (nick[0] == mList[m].symbol) | var found = false; for (var m in mList) | function serv_353 (e){ e.channel = new CIRCChannel(this, null, e.params[3]); if (e.channel.usersStable) { e.channel.users = new Object(); e.channel.usersStable = false; } e.destObject = e.channel; e.set = "channel"; var nicks = e.params[4].split (" "); var mList = this.userModes; ... |
e.user = new CIRCChanUser(e.channel, null, nick.substr(1, nick.length), [ mList[m].mode ]); found = true; break; | if (nick[0] == mList[m].symbol) { nick = nick.substr(1); modes.push(mList[m].mode); found = true; break; } | function serv_353 (e){ e.channel = new CIRCChannel(this, null, e.params[3]); if (e.channel.usersStable) { e.channel.users = new Object(); e.channel.usersStable = false; } e.destObject = e.channel; e.set = "channel"; var nicks = e.params[4].split (" "); var mList = this.userModes; ... |
} if (!found) e.user = new CIRCChanUser(e.channel, null, nick, [ ]); | } while (found && this.supports.namesx); | function serv_353 (e){ e.channel = new CIRCChannel(this, null, e.params[3]); if (e.channel.usersStable) { e.channel.users = new Object(); e.channel.usersStable = false; } e.destObject = e.channel; e.set = "channel"; var nicks = e.params[4].split (" "); var mList = this.userModes; ... |
new CIRCChanUser(e.channel, null, nick, modes); | function serv_353 (e){ e.channel = new CIRCChannel(this, null, e.params[3]); if (e.channel.usersStable) { e.channel.users = new Object(); e.channel.usersStable = false; } e.destObject = e.channel; e.set = "channel"; var nicks = e.params[4].split (" "); var mList = this.userModes; ... | |
e.channel = new CIRCChannel (this, e.params[2]); | e.channel = new CIRCChannel(this, null, e.params[2]); | function serv_366 (e){ e.channel = new CIRCChannel (this, e.params[2]); e.destObject = e.channel; e.set = "channel"; e.channel.usersStable = true; return true;} |
e.channel = new CIRCChannel (this, e.params[2]); | e.channel = new CIRCChannel(this, null, e.params[2]); | function serv_367(e){ e.channel = new CIRCChannel (this, e.params[2]); e.destObject = e.channel; e.set = "channel"; e.ban = e.params[3]; e.user = new CIRCUser(this, e.params[4]); e.banTime = new Date (Number(e.params[5]) * 1000); if (typeof e.channel.bans[e.ban] == "undefined") { e.ch... |
e.user = new CIRCUser(this, e.params[4]); | e.user = new CIRCUser(this, null, e.params[4]); | function serv_367(e){ e.channel = new CIRCChannel (this, e.params[2]); e.destObject = e.channel; e.set = "channel"; e.ban = e.params[3]; e.user = new CIRCUser(this, e.params[4]); e.banTime = new Date (Number(e.params[5]) * 1000); if (typeof e.channel.bans[e.ban] == "undefined") { e.ch... |
e.channel = new CIRCChannel (this, e.params[2]); | e.channel = new CIRCChannel(this, null, e.params[2]); | function serv_368(e){ e.channel = new CIRCChannel (this, e.params[2]); e.destObject = e.channel; e.set = "channel"; /* This flag is cleared in a timeout (which occurs right after the current * message has been processed) so that the new event target (the channel) * will still have the flag set ... |
e.channel = new CIRCChannel (this, e.params[2]); | e.channel = new CIRCChannel(this, null, e.params[2]); | function serv_482(e){ e.channel = new CIRCChannel (this, e.params[2]); e.destObject = e.channel; e.set = "channel"; /* Some servers (e.g. Hybrid) don't let you get the except list without ops, * so we might be waiting for this list forever otherwise. */ if ("pendingExceptList" in e.channel) ... |
return new CIRCChannel(this, fromUnicode(unicodeName, charset), unicodeName); | return new CIRCChannel(this, unicodeName, fromUnicode(unicodeName, charset)); | function serv_addchan(unicodeName, charset){ return new CIRCChannel(this, fromUnicode(unicodeName, charset), unicodeName);} |
function serv_addusr (nick, name, host) | function serv_addusr(unicodeName, name, host) | function serv_addusr (nick, name, host){ return new CIRCUser(this, nick, name, host);} |
return new CIRCUser(this, nick, name, host); | return new CIRCUser(this, unicodeName, null, name, host); | function serv_addusr (nick, name, host){ return new CIRCUser(this, nick, name, host);} |
var ary = fname.match(/^onCTCP(.*)/); | var ary = fname.match(/^onCTCP(.+)/); | function serv_ccinfo (e){ var clientinfo = new Array(); for (var fname in this) { var ary = fname.match(/^onCTCP(.*)/); if (ary && ary[1].search(/^Reply/) == -1) clientinfo.push (ary[1].toUpperCase()); } e.server.ctcpTo (e.user.nick, "CLIENTINFO", clientinfo.join(" "), ... |
e.server.ctcpTo (e.user.nick, "CLIENTINFO", clientinfo.join(" "), "NOTICE"); | e.user.ctcp("CLIENTINFO", clientinfo.join(" "), "NOTICE"); | function serv_ccinfo (e){ var clientinfo = new Array(); for (var fname in this) { var ary = fname.match(/^onCTCP(.*)/); if (ary && ary[1].search(/^Reply/) == -1) clientinfo.push (ary[1].toUpperCase()); } e.server.ctcpTo (e.user.nick, "CLIENTINFO", clientinfo.join(" "), ... |
if (this.connection.connect(this.hostname, this.port, null, true, null)) | if (this.connection.connect(this.hostname, this.port, null, true, this.isSecure, null)) | function serv_connect (password){ try { this.connection = new CBSConnection(); } catch (ex) { ev = new CEvent ("server", "error", this, "onError"); ev.server = this; ev.debug = "Couldn't create socket :" + ex; ev.errorCode = JSIRC_ERR_NO_SOCKET; ev.exception = ex... |
e.server.connection.sendData ("NOTICE " + e.user.nick + " :\01PING " + e.CTCPData + "\01\n"); | this.connection.sendData("NOTICE " + e.user.encodedName + " :\01PING " + e.CTCPData + "\01\n"); | function serv_cping (e){ /* non-queued send */ e.server.connection.sendData ("NOTICE " + e.user.nick + " :\01PING " + e.CTCPData + "\01\n"); e.destObject = e.replyTo; e.set = (e.replyTo == e.user) ? "user" : "channel"; return true;} |
var ary = e.meat.match (/^\x01(\S+) ?(.*)\x01$/i); | var ary = e.params[2].match (/^\x01(\S+) ?(.*)\x01$/i); | function serv_ctcp (e){ var ary = e.meat.match (/^\x01(\S+) ?(.*)\x01$/i); if (ary == null) return false; e.CTCPData = ary[2] ? ary[2] : ""; e.CTCPCode = ary[1].toLowerCase(); if (e.CTCPCode.search (/^reply/i) == 0) { dd ("dropping spoofed reply."); return false; } e.typ... |
dd (ary); | function serv_ctcp (e){ var ary = e.meat.match (/^\x01(\S+) ?(.*)\x01$/i); dd (ary); if (ary == null) return false; e.CTCPData = ary[2] ? ary[2] : ""; e.type = "ctcp-" + ary[1].toLowerCase(); e.destMethod = "onCTCP" + ary[1][0].toUpperCase() + ary[1].substr (1, ary[1].length).toL... | |
var ary = e.meat.match (/^\x01(\S+)? ?(.*)\x01$/i); | var ary = e.meat.match (/^\x01(\S+) ?(.*)?\x01$/i); | function serv_ctcp (e){ var ary = e.meat.match (/^\x01(\S+)? ?(.*)\x01$/i); if (ary == null) return false; e.CTCPData = ary[2] ? ary[2] : ""; e.type = "ctcp-" + ary[1].toLowerCase(); e.destMethod = "onCTCP" + ary[1][0].toUpperCase() + ary[1].substr (1, ary[1].length).toLowerCase(); i... |
var ary = e.meat.match (/^\x01(\S+) ?(.*)\x01$/i); | var ary = e.params[2].match (/^\x01(\S+) ?(.*)\x01$/i); | function serv_ctcpr (e){ var ary = e.meat.match (/^\x01(\S+) ?(.*)\x01$/i); if (ary == null) return false; e.CTCPData = ary[2] ? ary[2] : ""; e.CTCPCode = ary[1].toLowerCase(); e.type = "ctcp-reply-" + e.CTCPCode; e.destMethod = "onCTCPReply" + ary[1][0].toUpperCase() + ary[1].substr (1,... |
e.user.notice ("\01VERSION " + lines[i] + "\01"); | e.user.ctcp("VERSION", lines[i], "NOTICE"); | function serv_cver (e){ var lines = e.server.VERSION_RPLY.split ("\n"); for (var i in lines) e.user.notice ("\01VERSION " + lines[i] + "\01"); e.destObject = e.replyTo; e.set = (e.replyTo == e.user) ? "user" : "channel"; return true;} |
if (ary[1][0] == '"') | if ((ary[1][0] == '"') || (ary[1][ary[1].length - 1] == '"')) | function serv_dccsend (e){ var ary = e.DCCData.match(/(\S+) (\d+) (\d+) (\d+)/); /* Just for mIRC: filenames with spaces may be enclosed in double-quotes. * (though by default it replaces spaces with underscores, but we might as * well cope). */ if (ary[1][0] == '"') ary = e.DCCData.match(/"... |
(this.parent.primServ == this) && (this.parent.stayingPower)) | (this.parent.primServ == this) && (!("quitting" in this) && this.parent.stayingPower)) | function serv_disconnect(e){ if (("connecting" in this.parent) || /* fell off while connecting, try again */ (this.parent.primServ == this) && (this.parent.stayingPower)) { /* fell off primary server, reconnect to any host in the serverList */ var ev = new CEvent ("network", "do-connect", this.paren... |
delete this.quitting; | function serv_disconnect(e){ if (("connecting" in this.parent) || /* fell off while connecting, try again */ (this.parent.primServ == this) && (this.parent.stayingPower)) { /* fell off primary server, reconnect to any host in the serverList */ var ev = new CEvent ("network", "do-connect", this.paren... | |
var ev = new CEvent ("network", "do-connect", this.parent, "onDoConnect"); this.parent.eventPump.addEvent (ev); | var reconnectFn = function(server) { delete server.parent.reconnectTimer; var ev = new CEvent("network", "do-connect", server.parent, "onDoConnect"); server.parent.eventPump.addEvent(ev); }; this.parent.reconnectTimer = setTimeout(reconnectFn, 15000, this); | function serv_disconnect(e){ if ((this.parent.connecting) || /* fell off while connecting, try again */ (this.parent.primServ == this) && (!("quitting" in this) && this.parent.stayingPower)) { /* fell off primary server, reconnect to any host in the serverList */ var ev = new CEvent ("network... |
var reconnectFn = function(server) { delete server.parent.reconnectTimer; var ev = new CEvent("network", "do-connect", server.parent, "onDoConnect"); server.parent.eventPump.addEvent(ev); }; setTimeout(stateChangeFn, 0, this.parent, NET_WAITING); this.parent.reconnectTimer = setTimeout(reconnectFn, 15000, this); | setTimeout(delayedConnectFn, 0, this.parent); | function serv_disconnect(e){ function stateChangeFn(network, state) { network.state = state; }; if ((this.parent.state == NET_CONNECTING) || /* fell off while connecting, try again */ (this.parent.primServ == this) && (this.parent.state == NET_ONLINE) && (!("quitting" in this) && th... |
var url = "irc: | var url = (this.isSecure ? "ircs: | function serv_geturl(target){ if (!target) target = ""; var url = "irc://" + this.hostname; if (this.port != 6667) url += ":" + this.port; url += "/" + target; if (url.indexOf(".") == -1) url += ",isserver"; if (this.password) url += ",needpass"; return url;} |
e.channel = new CIRCChannel (this, (e.meat ? e.meat : e.params[1])); | e.channel = new CIRCChannel (this, e.params[1]); | function serv_join (e){ e.channel = new CIRCChannel (this, (e.meat ? e.meat : e.params[1])); if (e.user == this.me) e.server.sendData ("MODE " + e.channel.encodedName + "\n" /* + "BANS " + e.channel.encodedName + "\n" */); e.user = new CIRCChanUser (e.channel, e.user.nick); ... |
e.channel = new CIRCChannel(this, e.params[1]); e.user = new CIRCChanUser(e.channel, e.user.nick); | e.channel = new CIRCChannel(this, null, e.params[1]); e.user = new CIRCChanUser(e.channel, e.user.unicodeName); | function serv_join(e){ e.channel = new CIRCChannel(this, e.params[1]); e.user = new CIRCChanUser(e.channel, e.user.nick); if (userIsMe(e.user)) { // Give us the channel mode! e.server.sendData("MODE " + e.channel.encodedName + "\n"); // Get a full list of bans and exceptions... |
e.server.sendData("MODE " + e.channel.encodedName + "\n"); if (arrayContains(this.channelModes.a, "b")) { e.server.sendData("MODE " + e.channel.encodedName + " +b\n"); e.channel.pendingBanList = true; } if (arrayContains(this.channelModes.a, "e")) { e.server.sendData("MODE " + e.channel.encodedName + " +e\n"); e.chan... | var delayFn1 = function(t) { if (!e.channel.active) return; e.server.sendData("MODE " + e.channel.encodedName + "\n"); }; setTimeout(delayFn1, 1000 + 2000 * Math.random(), this); var delayFn2 = function(t) { if (!e.channel.active) return; if (arrayContains(t.channelModes.a, "b")) { e.server.sendData("MODE " + e.c... | function serv_join(e){ e.channel = new CIRCChannel(this, e.params[1]); e.user = new CIRCChanUser(e.channel, e.user.nick); if (userIsMe(e.user)) { // Give us the channel mode! e.server.sendData("MODE " + e.channel.encodedName + "\n"); // Get a full list of bans and exceptions... |
e.reason = e.meat; | e.reason = e.params[3]; | function serv_kick (e){ e.channel = new CIRCChannel (this, e.params[1]); e.lamer = new CIRCChanUser (e.channel, e.params[2]); delete e.channel.users[e.lamer.nick]; if (userIsMe(e.lamer)) e.channel.active = false; e.reason = e.meat; e.destObject = e.channel; e.set = "channel"; return true... |
e.channel = new CIRCChannel (this, e.params[1]); e.lamer = new CIRCChanUser (e.channel, e.params[2]); delete e.channel.users[e.lamer.nick]; | e.channel = new CIRCChannel(this, null, e.params[1]); e.lamer = new CIRCChanUser(e.channel, null, e.params[2]); delete e.channel.users[e.lamer.canonicalName]; | function serv_kick (e){ e.channel = new CIRCChannel (this, e.params[1]); e.lamer = new CIRCChanUser (e.channel, e.params[2]); delete e.channel.users[e.lamer.nick]; if (userIsMe(e.lamer)) { e.channel.active = false; e.channel.joined = false; } e.reason = e.decodeParam(3, e.channel); ... |
e.reason = e.decodeParam(3); | e.reason = e.decodeParam(3, e.channel); | function serv_kick (e){ e.channel = new CIRCChannel (this, e.params[1]); e.lamer = new CIRCChanUser (e.channel, e.params[2]); delete e.channel.users[e.lamer.nick]; if (userIsMe(e.lamer)) e.channel.active = false; e.reason = e.decodeParam(3); e.destObject = e.channel; e.set = "channel"; r... |
this.me = new CIRCUser(this, nick, name); | this.me = new CIRCUser(this, nick, null, name); | function serv_login(nick, name, desc){ nick = nick.replace(" ", "_"); name = name.replace(" ", "_"); if (!nick) nick = "nick"; if (!name) name = nick; if (!desc) desc = nick; this.me = new CIRCUser(this, nick, name); if (this.password) this.sendData("PASS " + ... |
this.sendData("NICK " + nick + "\n"); | this.sendData("NICK " + this.me.encodedName + "\n"); | function serv_login(nick, name, desc){ nick = nick.replace(" ", "_"); name = name.replace(" ", "_"); if (!nick) nick = "nick"; if (!name) name = nick; if (!desc) desc = nick; this.me = new CIRCUser(this, nick, name); if (this.password) this.sendData("PASS " + ... |
this.me = new CIRCUser (this, nick, name); | nick = nick.replace(" ", "_"); name = name.replace(" ", "_"); this.me = new CIRCUser(this, nick, name); | function serv_login(nick, name, desc){ this.me = new CIRCUser (this, nick, name); if (this.password) this.sendData ("PASS " + this.password + "\n"); this.sendData ("NICK " + nick + "\n"); this.sendData ("USER " + name + " foo bar :" + fromUnicode(desc, this) + "\n");} |
this.quitting = true; | function serv_logout(reason){ if (typeof reason == "undefined") reason = this.DEFAULT_REASON; this.connection.sendData ("QUIT :" + reason + "\n"); this.connection.disconnect();} | |
e.channel = new CIRCChannel (this, e.params[1]); | e.channel = new CIRCChannel(this, null, e.params[1]); | function serv_mode (e){ e.destObject = this; /* modes are not allowed in +channels -> no need to test that here.. */ if (arrayIndexOf(this.channelTypes, e.params[1][0]) != -1) { e.channel = new CIRCChannel (this, e.params[1]); if ("user" in e && e.user) e.user = new CIRCChanUser (e.... |
e.user = new CIRCChanUser (e.channel, e.user.nick); | e.user = new CIRCChanUser(e.channel, e.user.unicodeName); | function serv_mode (e){ e.destObject = this; /* modes are not allowed in +channels -> no need to test that here.. */ if (arrayIndexOf(this.channelTypes, e.params[1][0]) != -1) { e.channel = new CIRCChannel (this, e.params[1]); if ("user" in e && e.user) e.user = new CIRCChanUser (e.... |
var newNick = (e.meat) ? e.meat : e.params[1]; | var newNick = e.params[1]; | function serv_nick (e){ /* Some irc networks send the new nick in the meat, some send it in param[1] * Handle both cases. */ var newNick = (e.meat) ? e.meat : e.params[1]; var newKey = newNick.toLowerCase(); var oldKey = e.user.nick; var ev; renameProperty (this.users, oldKey, newKey); e.o... |
var oldKey = e.user.nick; | var oldKey = e.user.canonicalName; | function serv_nick (e){ var newNick = e.params[1]; var newKey = this.toLowerCase(newNick); var oldKey = e.user.nick; var ev; renameProperty (this.users, oldKey, newKey); e.oldNick = e.user.properNick; e.user.changeNick(newNick); for (var c in this.channels) { if (this.channels... |
e.oldNick = e.user.properNick; e.user.changeNick(newNick); | e.oldNick = e.user.unicodeName; e.user.changeNick(toUnicode(newNick, this)); | function serv_nick (e){ var newNick = e.params[1]; var newKey = this.toLowerCase(newNick); var oldKey = e.user.nick; var ev; renameProperty (this.users, oldKey, newKey); e.oldNick = e.user.properNick; e.user.changeNick(newNick); for (var c in this.channels) { if (this.channels... |
else if (e.meat.search (/\x01.*\x01/i) != -1) | else if (e.params[2].search (/\x01.*\x01/i) != -1) | function serv_notice (e){ if (!("user" in e)) { e.set = "network"; e.destObject = this.parent; return true; } if ((e.params[1][0] == "#") || (e.params[1][0] == "&") || (e.params[1][0] == "+") || (e.params[1][0] == "!")) { e.channel = new CIRCChannel(this, e.para... |
e.channel = new CIRCChannel(this, e.params[1]); e.user = new CIRCChanUser (e.channel, e.user.nick); | e.channel = new CIRCChannel(this, null, e.params[1]); e.user = new CIRCChanUser(e.channel, e.user.unicodeName); | function serv_notice (e){ if (!("user" in e)) { e.set = "network"; e.destObject = this.parent; return true; } if (arrayIndexOf(this.channelTypes, e.params[1][0]) != -1) { e.channel = new CIRCChannel(this, e.params[1]); e.user = new CIRCChanUser (e.channel, e.use... |
if (!("user" in e)) | var targetName = e.params[1]; for (var i = 0; i < this.userModes.length; i++) { if (targetName[0] == this.userModes[i].symbol) { targetName = targetName.substr(1); break; } } if (arrayIndexOf(this.channelTypes, targetName[0]) != -1) { e.channel = new CIRCChannel(this, null, targetName); if ("user" in e) e.user = new... | function serv_notice (e){ if (!("user" in e)) { e.set = "network"; e.destObject = this.parent; return true; } if (arrayIndexOf(this.channelTypes, e.params[1][0]) != -1) { e.channel = new CIRCChannel(this, null, e.params[1]); e.user = new CIRCChanUser(e.channel, e.user.u... |
if (arrayIndexOf(this.channelTypes, e.params[1][0]) != -1) { e.channel = new CIRCChannel(this, null, e.params[1]); e.user = new CIRCChanUser(e.channel, e.user.unicodeName); e.replyTo = e.channel; e.set = "channel"; } else if (e.params[2].search (/\x01.*\x01/i) != -1) | if (e.params[2].search (/\x01.*\x01/i) != -1) | function serv_notice (e){ if (!("user" in e)) { e.set = "network"; e.destObject = this.parent; return true; } if (arrayIndexOf(this.channelTypes, e.params[1][0]) != -1) { e.channel = new CIRCChannel(this, null, e.params[1]); e.user = new CIRCChanUser(e.channel, e.user.u... |
return true; | function serv_notice (e){ if (!("user" in e)) { e.set = "network"; e.destObject = this.parent; return true; } if (arrayIndexOf(this.channelTypes, e.params[1][0]) != -1) { e.channel = new CIRCChannel(this, null, e.params[1]); e.user = new CIRCChanUser(e.channel, e.user.u... | |
e.set = "user"; e.replyTo = e.user; | e.msg = e.decodeParam(2, e.replyTo); e.destObject = e.replyTo; | function serv_notice (e){ if (!("user" in e)) { e.set = "network"; e.destObject = this.parent; return true; } if (arrayIndexOf(this.channelTypes, e.params[1][0]) != -1) { e.channel = new CIRCChannel(this, null, e.params[1]); e.user = new CIRCChanUser(e.channel, e.user.u... |
e.msg = e.decodeParam(2, e.replyTo); e.destObject = e.replyTo; | function serv_notice (e){ if (!("user" in e)) { e.set = "network"; e.destObject = this.parent; return true; } if (arrayIndexOf(this.channelTypes, e.params[1][0]) != -1) { e.channel = new CIRCChannel(this, null, e.params[1]); e.user = new CIRCChanUser(e.channel, e.user.u... | |
e.meat = l.substr (sep + 2, l.length); | { var trail = l.substr (sep + 2, l.length); e.params = l.substr(0, sep).split(" "); e.params[e.params.length] = trail; } | function serv_onRawData(e){ var ary; var l = e.data; if (l.length == 0) { dd ("empty line on onRawData?"); return false; } if (l[0] == ":") { ary = l.match (/:(\S+)\s(.*)/); e.source = ary[1]; l = ary[2]; ary = e.source.match (/(\S+)!(\S+)@(.*)/); ... |
e.meat = ""; | { e.params = l.split(" "); } | function serv_onRawData(e){ var ary; var l = e.data; if (l.length == 0) { dd ("empty line on onRawData?"); return false; } if (l[0] == ":") { ary = l.match (/:(\S+)\s(.*)/); e.source = ary[1]; l = ary[2]; ary = e.source.match (/(\S+)!(\S+)@(.*)/); ... |
if (sep != -1) e.params = l.substr(0, sep).split(" "); else e.params = l.split(" "); | function serv_onRawData(e){ var ary; var l = e.data; if (l.length == 0) { dd ("empty line on onRawData?"); return false; } if (l[0] == ":") { ary = l.match (/:(\S+)\s(.*)/); e.source = ary[1]; l = ary[2]; ary = e.source.match (/(\S+)!(\S+)@(.*)/); ... | |
e.meat = l.substr (sep + 1, l.length); | e.meat = l.substr (sep + 2, l.length); | function serv_onRawData(e){ var ary; var l = e.data; if (l[0] == ":") { ary = l.match (/:(\S+)\s(.*)/); e.source = ary[1]; l = ary[2]; ary = e.source.match (/(\S+)!(\S+)@(.*)/); if (ary) { e.user = new CIRCUser(this, ary[1], ary[2], ary[3]); } ... |
if (e.params[e.params.length - 1] == "") e.params.length--; | function serv_onRawData(e){ var ary; var l = e.data; if (l[0] == ":") { ary = l.match (/:(\S+)\s(.*)/); e.source = ary[1]; l = ary[2]; ary = e.source.match (/(\S+)!(\S+)@(.*)/); if (ary) { e.user = new CIRCUser(this, ary[1], ary[2], ary[3]); } ... | |
e.meat = l.substr (sep + 1, l.length); | function serv_onRawData(e){ var ary; var l = e.data; if (l[0] == ":") { ary = l.match (/:(\S+)\s(.*)/); e.source = ary[1]; l = ary[2]; ary = e.source.match (/(\S+)!(\S+)@(.*)/); if (ary) { e.user = new CIRCUser(this, ary[1], ary[2], ary[3]); } ... | |
this.connection.sendData (s); | try { this.connection.sendData(s); } catch(ex) { dd("Exception in queued send: " + ex); this.flushSendQueue(); var ev = new CEvent("server", "disconnect", this, "onDisconnect"); ev.server = this; ev.reason = "error"; ev.exception = ex; this.parent.eventPump.addEvent(ev); return false; } | function serv_onsenddata (e){ if (!this.isConnected) { dd ("Can't send to disconnected socket"); this.flushSendQueue(); return false; } var d = new Date(); this.sendsThisRound = 0; if (((d - this.lastSend) >= this.MS_BETWEEN_SENDS) && this.sendQueue.length > 0) ... |
this.parent.eventPump.addEvent (new CEvent ("event-pump", "yield", null, "")); | { this.parent.eventPump.addEvent(new CEvent("event-pump", "yield", null, "")); } | function serv_onsenddata (e){ if (!this.isConnected) { dd ("Can't send to disconnected socket"); this.flushSendQueue(); return false; } var d = new Date(); this.sendsThisRound = 0; if (((d - this.lastSend) >= this.MS_BETWEEN_SENDS) && this.sendQueue.length > 0) ... |
e.channel = new CIRCChannel (this, e.params[1]); | e.channel = new CIRCChannel(this, null, e.params[1]); | function serv_part (e){ e.channel = new CIRCChannel (this, e.params[1]); e.reason = (e.params.length > 2) ? e.decodeParam(2, e.channel) : ""; e.user = new CIRCChanUser (e.channel, e.user.nick); if (userIsMe(e.user)) { e.channel.active = false; e.channel.joined = false; } e.channel.rem... |
e.user = new CIRCChanUser (e.channel, e.user.nick); | e.user = new CIRCChanUser(e.channel, e.user.unicodeName); | function serv_part (e){ e.channel = new CIRCChannel (this, e.params[1]); e.reason = (e.params.length > 2) ? e.decodeParam(2, e.channel) : ""; e.user = new CIRCChanUser (e.channel, e.user.nick); if (userIsMe(e.user)) { e.channel.active = false; e.channel.joined = false; } e.channel.rem... |
e.channel.removeUser(e.user.nick); | e.channel.removeUser(e.user.encodedName); | function serv_part (e){ e.channel = new CIRCChannel (this, e.params[1]); e.reason = (e.params.length > 2) ? e.decodeParam(2, e.channel) : ""; e.user = new CIRCChanUser (e.channel, e.user.nick); if (userIsMe(e.user)) { e.channel.active = false; e.channel.joined = false; } e.channel.rem... |
e.channel = new CIRCChannel (this, e.params[1]); | e.channel = new CIRCChannel (this, e.params[1]); e.reason = (e.params.length > 1) ? e.decodeParam(2, e.channel) : ""; | function serv_part (e){ e.channel = new CIRCChannel (this, e.params[1]); e.user = new CIRCChanUser (e.channel, e.user.nick); if (userIsMe(e.user)) e.channel.active = false; e.channel.removeUser(e.user.nick); e.destObject = e.channel; e.set = "channel"; return true;} |
if (e.meat) { this.connection.sendData ("PONG :" + e.meat + "\n"); } else { this.connection.sendData ("PONG :" + e.params[e.params.length - 1] + "\n"); } | this.connection.sendData ("PONG :" + e.params[1] + "\n"); | function serv_ping (e){ /* non-queued send, so we can calcualte lag */ if (e.meat) { this.connection.sendData ("PONG :" + e.meat + "\n"); } else { this.connection.sendData ("PONG :" + e.params[e.params.length - 1] + "\n"); } this.connection.sendData ("PING :LAGTIMER\n"); this.la... |
e.destObject = this.parent; e.set = "network"; | function serv_ping (e){ /* non-queued send, so we can calcualte lag */ this.connection.sendData ("PONG :" + e.meat + "\n"); this.connection.sendData ("PING :" + e.meat + "\n"); this.lastPing = this.lastPingSent = new Date(); return true; } | |
dd ("queued send: " + s); | function serv_poll(e){ var lines; var ex; var d = new Date(); if (!this.connection.isConnected) { var ev = new CEvent ("server", "disconnect", this, "onDisconnect"); ev.reason = "unknown"; this.parent.eventPump.addEvent (ev); return false; } t... | |
if (e.meat != "LAGTIMER") | if (e.params[2] != "LAGTIMER") | function serv_pong (e){ if (e.meat != "LAGTIMER") return true; if (this.lastPingSent) this.lag = roundTo ((new Date() - this.lastPingSent) / 1000, 2); delete this.lastPingSent; e.destObject = this.parent; e.set = "network"; return true; } |
e.destObject = this.parent; e.set = "network"; | function serv_pong (e){ if (this.lastPingSent) this.lag = (new Date() - this.lastPingSent) / 1000; delete this.lastPingSent; return true; } | |
if (e.meat.search (/\x01.*\x01/i) != -1) | if (e.params[2].search (/\x01.*\x01/i) != -1) | function serv_privmsg (e){ /* setting replyTo provides a standard place to find the target for */ /* replys associated with this event. */ if ((e.params[1][0] == "#") || (e.params[1][0] == "&") || (e.params[1][0] == "+") || (e.params[1][0] == "!")) { e... |
e.channel = new CIRCChannel(this, e.params[1]); e.user = new CIRCChanUser(e.channel, e.user.nick); | e.channel = new CIRCChannel(this, null, e.params[1]); e.user = new CIRCChanUser(e.channel, e.user.unicodeName); | function serv_privmsg (e){ /* setting replyTo provides a standard place to find the target for */ /* replys associated with this event. */ if (arrayIndexOf(this.channelTypes, e.params[1][0]) != -1) { e.channel = new CIRCChannel(this, e.params[1]); e.user =... |
if (arrayIndexOf(this.channelTypes, e.params[1][0]) != -1) | if (arrayIndexOf(this.channelTypes, targetName[0]) != -1) | function serv_privmsg (e){ /* setting replyTo provides a standard place to find the target for */ /* replys associated with this event. */ if (arrayIndexOf(this.channelTypes, e.params[1][0]) != -1) { e.channel = new CIRCChannel(this, null, e.params[1]); e.... |
e.channel = new CIRCChannel(this, null, e.params[1]); | e.channel = new CIRCChannel(this, null, targetName); | function serv_privmsg (e){ /* setting replyTo provides a standard place to find the target for */ /* replys associated with this event. */ if (arrayIndexOf(this.channelTypes, e.params[1][0]) != -1) { e.channel = new CIRCChannel(this, null, e.params[1]); e.... |
ev.reason = e.meat; | ev.reason = e.params[1]; | function serv_quit (e){ for (var c in e.server.channels) { if (e.server.channels[c].active && e.user.nick in e.server.channels[c].users) { var ev = new CEvent ("channel", "quit", e.server.channels[c], "onQuit"); ev.user = e.server.chan... |
this.users[e.user.nick].lastQuitMessage = e.meat; | this.users[e.user.nick].lastQuitMessage = e.params[1]; | function serv_quit (e){ for (var c in e.server.channels) { if (e.server.channels[c].active && e.user.nick in e.server.channels[c].users) { var ev = new CEvent ("channel", "quit", e.server.channels[c], "onQuit"); ev.user = e.server.chan... |
e.reason = e.meat; | e.reason = e.params[1]; | function serv_quit (e){ for (var c in e.server.channels) { if (e.server.channels[c].active && e.user.nick in e.server.channels[c].users) { var ev = new CEvent ("channel", "quit", e.server.channels[c], "onQuit"); ev.user = e.server.chan... |
e.user.nick in e.server.channels[c].users) | e.user.canonicalName in e.server.channels[c].users) | function serv_quit (e){ var reason = e.decodeParam(1); for (var c in e.server.channels) { if (e.server.channels[c].active && e.user.nick in e.server.channels[c].users) { var ev = new CEvent ("channel", "quit", e.server.channels[c], "onQuit... |
ev.user = e.server.channels[c].users[e.user.nick]; | ev.user = e.server.channels[c].users[e.user.canonicalName]; | function serv_quit (e){ var reason = e.decodeParam(1); for (var c in e.server.channels) { if (e.server.channels[c].active && e.user.nick in e.server.channels[c].users) { var ev = new CEvent ("channel", "quit", e.server.channels[c], "onQuit... |
delete e.server.channels[c].users[e.user.nick]; | delete e.server.channels[c].users[e.user.canonicalName]; | function serv_quit (e){ var reason = e.decodeParam(1); for (var c in e.server.channels) { if (e.server.channels[c].active && e.user.nick in e.server.channels[c].users) { var ev = new CEvent ("channel", "quit", e.server.channels[c], "onQuit... |
this.users[e.user.nick].lastQuitMessage = reason; this.users[e.user.nick].lastQuitDate = new Date(); | this.users[e.user.canonicalName].lastQuitMessage = reason; this.users[e.user.canonicalName].lastQuitDate = new Date(); if (this.PRUNE_OLD_USERS == 0) delete this.users[e.user.canonicalName]; | function serv_quit (e){ var reason = e.decodeParam(1); for (var c in e.server.channels) { if (e.server.channels[c].active && e.user.nick in e.server.channels[c].users) { var ev = new CEvent ("channel", "quit", e.server.channels[c], "onQuit... |
e.channel.topic = e.meat; | e.channel.topic = e.params[2]; | function serv_topic (e){ e.channel = new CIRCChannel (this, e.params[1]); e.channel.topicBy = e.user.nick; e.channel.topicDate = new Date(); e.channel.topic = e.meat; e.destObject = e.channel; e.set = "channel"; return true; } |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.