rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
client.munger.entries[".mailto"].enabled = false;
function my_caction (e){ this.display (e.CTCPData, "ACTION", e.user, this);}
}
};
function my_chan_join (e) { if (userIsOwner(e.user)) e.user.setOp(true); }
if (msg.indexOf(bot.prefix) == 0 && userIsOwner(user))
if ((msg.indexOf(bot.prefix) == 0) && userIsOwner(user))
function my_chan_privmsg (e){ var user = e.user; var msg = e.decodeParam(2); if (msg.indexOf(bot.prefix) == 0 && userIsOwner(user)) { /* if last char is a continuation character, then... */ if (msg[msg.length - 1] == '\\') { user.accumulatedScript = msg.substring(bot.prefix.length, ...
if (msg[msg.length - 1] == '\\') {
if (msg[msg.length - 1] == "\\") {
function my_chan_privmsg (e){ var user = e.user; var msg = e.decodeParam(2); if (msg.indexOf(bot.prefix) == 0 && userIsOwner(user)) { /* if last char is a continuation character, then... */ if (msg[msg.length - 1] == '\\') { user.accumulatedScript = msg.substring(bot.prefix.length, ...
var lastLine = (msg[msg.length - 1] != '\\');
var lastLine = (msg[msg.length - 1] != "\\");
function my_chan_privmsg (e){ var user = e.user; var msg = e.decodeParam(2); if (msg.indexOf(bot.prefix) == 0 && userIsOwner(user)) { /* if last char is a continuation character, then... */ if (msg[msg.length - 1] == '\\') { user.accumulatedScript = msg.substring(bot.prefix.length, ...
if (!("messages" in this)) { this.display (getMsg("cli_ijoinMsg3", this.unicodeName), "INFO"); }
function my_cjoin (e){ if (userIsMe (e.user)) { if (!("messages" in this)) { this.display (getMsg("cli_ijoinMsg3", this.unicodeName), "INFO"); } this.display (getMsg("my_cjoinMsg", e.channel.unicodeName), "JOIN", e.server.me, thi...
}
function my_cjoin (e){ if (userIsMe (e.user)) { if (!("messages" in this)) { this.display (getMsg("cli_ijoinMsg3", this.unicodeName), "INFO"); } this.display (getMsg("my_cjoinMsg", e.channel.unicodeName), "JOIN", e.server.me, thi...
this.display (getMsg("my_cjoinMsg", e.channel.name), "JOIN",
this.display (getMsg("my_cjoinMsg", e.channel.unicodeName), "JOIN",
function my_cjoin (e){ if (userIsMe (e.user)) { this.display (getMsg("my_cjoinMsg", e.channel.name), "JOIN", e.server.me, this); setCurrentObject(this); } else this.display(getMsg("my_cjoinmsg2", [e.user.properNick, e.user.name, ...
e.user.host, e.channel.name]),
e.user.host, e.channel.unicodeName]),
function my_cjoin (e){ if (userIsMe (e.user)) { this.display (getMsg("my_cjoinMsg", e.channel.name), "JOIN", e.server.me, this); setCurrentObject(this); } else this.display(getMsg("my_cjoinmsg2", [e.user.properNick, e.user.name, ...
this.display (getMsg(MSG_YOU_JOINED, e.channel.unicodeName), "JOIN",
var params = [e.user.unicodeName, e.channel.unicodeName]; this.display (getMsg(MSG_YOU_JOINED, params), "JOIN",
function my_cjoin (e){ if (!("messages" in this)) this.displayHere(getMsg(MSG_CHANNEL_OPENED, this.unicodeName), MT_INFO); if (userIsMe(e.user)) { this.display (getMsg(MSG_YOU_JOINED, e.channel.unicodeName), "JOIN", e.server.me, this); if (client.globalHistory) ...
this.display ("YOU have joined " + e.channel.name, "JOIN", e.server.me, this);
this.display (getMsg("my_cjoinMsg", e.channel.name), "JOIN", e.server.me, this);
function my_cjoin (e){ if (userIsMe (e.user)) { this.display ("YOU have joined " + e.channel.name, "JOIN", e.server.me, this); setCurrentObject(this); } else this.display(e.user.properNick + " (" + e.user.name + "@" + e.user.host + ") has joined ...
this.display(e.user.properNick + " (" + e.user.name + "@" + e.user.host + ") has joined " + e.channel.name, "JOIN", e.user, this);
this.display(getMsg("my_cjoinmsg2", [e.user.properNick, e.user.name, e.user.host, e.channel.name]), "JOIN", e.user, this);
function my_cjoin (e){ if (userIsMe (e.user)) { this.display ("YOU have joined " + e.channel.name, "JOIN", e.server.me, this); setCurrentObject(this); } else this.display(e.user.properNick + " (" + e.user.name + "@" + e.user.host + ") has joined ...
[e.channel.name, e.user.properNick, e.reason]),
[e.channel.unicodeName, e.user.properNick, e.reason]),
function my_ckick (e){ if (userIsMe (e.lamer)) this.display (getMsg("my_ckickMsg", [e.channel.name, e.user.properNick, e.reason]), "KICK", e.user, this); else { var enforcerProper, enforcerNick; if (userIsMe (e.user)) { enf...
[e.lamer.properNick, e.channel.name, enforcerProper, e.reason]), "KICK", e.user, this);
[e.lamer.properNick, e.channel.unicodeName, enforcerProper, e.reason]), "KICK", e.user, this);
function my_ckick (e){ if (userIsMe (e.lamer)) this.display (getMsg("my_ckickMsg", [e.channel.name, e.user.properNick, e.reason]), "KICK", e.user, this); else { var enforcerProper, enforcerNick; if (userIsMe (e.user)) { enf...
[e.channel.unicodeName, e.user.unicodeName, e.reason]),
[e.lamer.unicodeName, e.channel.unicodeName, e.user.unicodeName, e.reason]),
function my_ckick (e){ if (userIsMe (e.lamer)) { if (e.user) { this.display (getMsg(MSG_YOURE_GONE, [e.channel.unicodeName, e.user.unicodeName, e.reason]), "KICK", e.user, this); } else...
[e.channel.unicodeName, MSG_SERVER, e.reason]),
[e.lamer.unicodeName, e.channel.unicodeName, MSG_SERVER, e.reason]),
function my_ckick (e){ if (userIsMe (e.lamer)) { if (e.user) { this.display (getMsg(MSG_YOURE_GONE, [e.channel.unicodeName, e.user.unicodeName, e.reason]), "KICK", e.user, this); } else...
this.display ("YOU have been booted from " + e.channel.name + " by " + e.user.properNick + " (" + e.reason + ")",
this.display (getMsg("my_ckickMsg", [e.channel.name, e.user.properNick, e.reason]),
function my_ckick (e){ if (userIsMe (e.lamer)) this.display ("YOU have been booted from " + e.channel.name + " by " + e.user.properNick + " (" + e.reason + ")", "KICK", e.user, this); else { var enforcerProper, enforcerNick; if (userIsMe (e.user)) ...
this.display (e.lamer.properNick + " was booted from " + e.channel.name + " by " + enforcerProper + " (" + e.reason + ")", "KICK", e.user, this);
this.display (getMsg("my_ckickMsg2", [e.lamer.properNick, e.channel.name, enforcerProper, e.reason]), "KICK", e.user, this);
function my_ckick (e){ if (userIsMe (e.lamer)) this.display ("YOU have been booted from " + e.channel.name + " by " + e.user.properNick + " (" + e.reason + ")", "KICK", e.user, this); else { var enforcerProper, enforcerNick; if (userIsMe (e.user)) ...
if ("user" in e)
if (e.code == "MODE")
function my_cmode (e){ if ("user" in e) { var msg = e.decodeParam(1); for (var i = 2; i < e.params.length; i++) msg += " " + e.decodeParam(i); this.display (getMsg(MSG_MODE_CHANGED, [msg, e.user.unicodeName]), "MODE", e.user, this); } var updates = new Ar...
this.display (getMsg(MSG_MODE_CHANGED, [msg, e.user.unicodeName]), "MODE", e.user, this);
var source = e.user ? e.user.unicodeName : e.source; this.display(getMsg(MSG_MODE_CHANGED, [msg, source]), "MODE", (e.user || null), this); } else if ("pendingModeReply" in this) { var msg = e.decodeParam(3); for (var i = 4; i < e.params.length; i++) msg += " " + e.decodeParam(i); var view = ("messages" in this && thi...
function my_cmode (e){ if ("user" in e) { var msg = e.decodeParam(1); for (var i = 2; i < e.params.length; i++) msg += " " + e.decodeParam(i); this.display (getMsg(MSG_MODE_CHANGED, [msg, e.user.unicodeName]), "MODE", e.user, this); } var updates = new Ar...
[toUnicode(e.params.slice(1).join(" ")),
[msg,
function my_cmode (e){ if ("user" in e) this.display (getMsg("my_cmodeMsg", [toUnicode(e.params.slice(1).join(" ")), e.user.properNick]), "MODE", e.user, this); for (var u in e.usersAffected) e.usersAffected[u].updateGraphResource(); update...
}
function my_cmode (e){ if ("user" in e) this.display (getMsg("my_cmodeMsg", [toUnicode(e.params.slice(1).join(" ")), e.user.properNick]), "MODE", e.user, this); for (var u in e.usersAffected) e.usersAffected[u].updateGraphResource(); update...
this.display (getMsg("my_cmodeMsg", [e.params.slice(1).join(" "), e.user.properNick]), "MODE", e.user, this);
this.display (getMsg("my_cmodeMsg", [toUnicode(e.params.slice(1).join(" ")), e.user.properNick]), "MODE", e.user, this);
function my_cmode (e){ if ("user" in e) this.display (getMsg("my_cmodeMsg", [e.params.slice(1).join(" "), e.user.properNick]), "MODE", e.user, this); for (var u in e.usersAffected) e.usersAffected[u].updateGraphResource(); updateCha...
this.display ("Mode " + e.params.slice(1).join(" ") + " by " + e.user.properNick, "MODE", e.user, this);
this.display (getMsg("my_cmodeMsg", [e.params.slice(1).join(" "), e.user.properNick]), "MODE", e.user, this);
function my_cmode (e){ if (e.user) this.display ("Mode " + e.params.slice(1).join(" ") + " by " + e.user.properNick, "MODE", e.user, this); for (var u in e.usersAffected) e.usersAffected[u].updateGraphResource(); updateChannel (e.channel); updateTitle (e.channel); }
this.display ("YOU are now known as " + e.user.properNick, "NICK",
this.display (getMsg("my_cnickMsg", e.user.properNick), "NICK",
function my_cnick (e){ if (userIsMe (e.user)) { this.display ("YOU are now known as " + e.user.properNick, "NICK", "ME!", e.user, this); updateNetwork(); } else this.display (e.oldNick + " is now known as " + e.user.properNick, "NICK", e.user, t...
this.display (e.oldNick + " is now known as " + e.user.properNick,
this.display (getMsg("my_cnickMsg2", e.oldNick, e.user.properNick),
function my_cnick (e){ if (userIsMe (e.user)) { this.display ("YOU are now known as " + e.user.properNick, "NICK", "ME!", e.user, this); updateNetwork(); } else this.display (e.oldNick + " is now known as " + e.user.properNick, "NICK", e.user, t...
if (client.DELETE_ON_PART) client.onInputDelete(e);
function my_cpart (e){ this._removeUserFromGraph(e.user); if (userIsMe (e.user)) { this.display ("YOU have left " + e.channel.name, "PART", "!ME"); if (client.currentObject == this) /* hide the tree while we remove (possibly tons) of nodes */ client.rdf.setTreeRoot("user...
if ("noDelete" in this) delete this.noDelete; else if (client.prefs["deleteOnPart"]) this.dispatch("delete");
if (this.deleteWhenDone) this.dispatch("delete-view"); delete this.deleteWhenDone;
function my_cpart (e){ this._removeUserFromGraph(e.user); this.removeUsers([e.user]); this.updateHeader(); if (userIsMe (e.user)) { var params = [e.user.unicodeName, e.channel.unicodeName]; this.display (getMsg(MSG_YOU_LEFT, params), "PART", e.user, this); if (client.currentObject ==...
this.display (getMsg("my_cpartMsg", e.channel.name), "PART", e.user, this);
this.display (getMsg("my_cpartMsg", e.channel.unicodeName), "PART", e.user, this);
function my_cpart (e){ this._removeUserFromGraph(e.user); if (userIsMe (e.user)) { this.display (getMsg("my_cpartMsg", e.channel.name), "PART", e.user, this); if (client.currentObject == this) /* hide the tree while we remove (possibly tons) of nodes */ ...
[e.user.properNick, e.channel.name]),
[e.user.properNick, e.channel.unicodeName]),
function my_cpart (e){ this._removeUserFromGraph(e.user); if (userIsMe (e.user)) { this.display (getMsg("my_cpartMsg", e.channel.name), "PART", e.user, this); if (client.currentObject == this) /* hide the tree while we remove (possibly tons) of nodes */ ...
this.display (getMsg(MSG_YOU_LEFT, e.channel.unicodeName), "PART", e.user, this);
var params = [e.user.unicodeName, e.channel.unicodeName]; this.display (getMsg(MSG_YOU_LEFT, params), "PART", e.user, this);
function my_cpart (e){ this._removeUserFromGraph(e.user); this.removeUsers([e.user]); this.updateHeader(); if (userIsMe (e.user)) { this.display (getMsg(MSG_YOU_LEFT, e.channel.unicodeName), "PART", e.user, this); if (client.currentObject == this) /* hide the...
this.display ("YOU have left " + e.channel.name, "PART", e.user, this);
this.display (getMsg("my_cpartMsg", e.channel.name), "PART", e.user, this);
function my_cpart (e){ this._removeUserFromGraph(e.user); if (userIsMe (e.user)) { this.display ("YOU have left " + e.channel.name, "PART", e.user, this); if (client.currentObject == this) /* hide the tree while we remove (possibly tons) of nodes */ client.rdf.setTreeRoo...
this.display (e.user.properNick + " has left " + e.channel.name,
this.display (getMsg("my_cpartMsg2", [e.user.properNick, e.channel.name]),
function my_cpart (e){ this._removeUserFromGraph(e.user); if (userIsMe (e.user)) { this.display ("YOU have left " + e.channel.name, "PART", e.user, this); if (client.currentObject == this) /* hide the tree while we remove (possibly tons) of nodes */ client.rdf.setTreeRoo...
if ("messages" in this)
if (!("messages" in this))
function my_cprivmsg (e){ if ("messages" in this) { playSounds(client.prefs["queryBeep"]); } else { playSounds(client.prefs["msgBeep"]); var limit = client.prefs["newTabLimit"]; if (limit == 0 || client.viewsArray.length < limit) { var tab = openQuery...
playSounds(client.prefs["queryBeep"]); } else { playSounds(client.prefs["msgBeep"]);
function my_cprivmsg (e){ if ("messages" in this) { playSounds(client.prefs["queryBeep"]); } else { playSounds(client.prefs["msgBeep"]); var limit = client.prefs["newTabLimit"]; if (limit == 0 || client.viewsArray.length < limit) { var tab = openQuery...
{ var tab = openQueryTab (e.server, e.user.nick); if (client.FOCUS_NEW_TAB) setCurrentObject(tab); }
openQueryTab(e.server, e.user.nick);
function my_cprivmsg (e){ if ("messages" in this) { playSounds(client.prefs["queryBeep"]); } else { playSounds(client.prefs["msgBeep"]); var limit = client.prefs["newTabLimit"]; if (limit == 0 || client.viewsArray.length < limit) { var tab = openQuery...
client.munger.entries[".mailto"].enabled = false;
function my_cprivmsg(e){ if (!("messages" in this)) { var limit = client.prefs["newTabLimit"]; if (limit == 0 || client.viewsArray.length < limit) openQueryTab(e.server, e.user.unicodeName); } this.display(e.decodeParam(2), "PRIVMSG", e.user, e.server.me);}
" (" + e.reason + ")", "QUIT", e.user.nick);
" (" + e.reason + ")", "QUIT");
function my_cquit (e){ if (userIsMe(e.user)) /* I dont think this can happen */ this.display ("YOU have left " + e.server.parent.name + " (" + e.reason + ")", "QUIT", "!ME"); else this.display (e.user.properNick + " has left " + e.server.parent.name + " (" +...
this.display (getMsg(MSG_YOU_QUIT, [e.server.parent.unicodeName, e.reason]), "QUIT", e.user, this);
var pms = [e.user.unicodeName, e.server.parent.unicodeName, e.reason]; this.display (getMsg(MSG_YOU_QUIT, pms),"QUIT", e.user, this);
function my_cquit (e){ if (userIsMe(e.user)) { /* I dont think this can happen */ this.display (getMsg(MSG_YOU_QUIT, [e.server.parent.unicodeName, e.reason]), "QUIT", e.user, this); } else { this.display (getMsg(MSG_SOMEONE_QUIT, [e.us...
this.display ("YOU have left " + e.server.parent.name + " (" + e.reason + ")", "QUIT", e.user, this);
this.display (getMsg("my_cquitMsg", [e.server.parent.name, e.reason]), "QUIT", e.user, this);
function my_cquit (e){ if (userIsMe(e.user)) /* I dont think this can happen */ this.display ("YOU have left " + e.server.parent.name + " (" + e.reason + ")", "QUIT", e.user, this); else this.display (e.user.properNick + " has left " + e.server.parent.name + ...
this.display (e.user.properNick + " has left " + e.server.parent.name + " (" + e.reason + ")", "QUIT", e.user, this);
this.display (getMsg("my_cquitMsg2", [e.user.properNick, e.server.parent.name, e.reason]), "QUIT", e.user, this);
function my_cquit (e){ if (userIsMe(e.user)) /* I dont think this can happen */ this.display ("YOU have left " + e.server.parent.name + " (" + e.reason + ")", "QUIT", e.user, this); else this.display (e.user.properNick + " has left " + e.server.parent.name + ...
[e.CTCPCode, e.CTCPData, e.user.properNick]),
[toUnicode(e.CTCPCode, this), toUnicode(e.CTCPData, this), e.user.properNick]),
function my_ctcprunk (e){ this.display(getMsg(MSG_FMT_CTCPREPLY, [e.CTCPCode, e.CTCPData, e.user.properNick]), "CTCP_REPLY", e.user, e.server.me, this);}
if (typeof (v) != "undefined") { if (v != null)
if (typeof v != "undefined") { if (v != null)
function my_dccchat_rawdata (e){ try { var v = eval(e.data); } catch (ex) { this.say (String(ex)); return false; } if (typeof (v) != "undefined") { if (v != null) v = String(v); else v = "null"; this....
client.munger.entries[".mailto"].enabled = false;
function my_dccprivmsg(e){ this.displayHere(toUnicode(e.line, this), "PRIVMSG", e.user, "ME!");}
if (!("pendingExceptList" in this)) this.display(toUnicode(e.params.join(" "), this), e.code.toUpperCase());
if ("pendingExceptList" in this) return; var msg = getMsg(MSG_EXCEPTLIST_ITEM, [e.user.unicodeName, e.except, this.unicodeName, e.exceptTime]); if (this.iAmHalfOp() || this.iAmOp()) msg += " " + getMsg(MSG_EXCEPTLIST_BUTTON, "mode -e " + e.except); client.munger.entries[".inline-buttons"].enabled = true; this.display...
function my_excepts(e){ if (!("pendingExceptList" in this)) this.display(toUnicode(e.params.join(" "), this), e.code.toUpperCase());}
this.list.push([e.params[2], e.params[3], e.params[4]]);
this.list.push([e.params[2], e.params[3], toUnicode(e.params[4])]);
function my_listrply (e){ ++this.list.count; e.params[2] = toUnicode(e.params[2]); if (!(this.list.regexp) || e.params[2].match(this.list.regexp) || e.params[4].match(this.list.regexp)) { this.list.push([e.params[2], e.params[3], e.params[4]]); }}
this.displayHere (getMsg("my_322", [e.params[2], e.params[3], e.meat]),
this.displayHere (getMsg("my_322", [toUnicode(e.params[2]), e.params[3], e.meat]),
function my_listrply (e){ this.displayHere (getMsg("my_322", [e.params[2], e.params[3], e.meat]), "322");}
this.displayHere (getMsg("my_322", [toUnicode(e.params[2]), e.params[3], e.meat]), "322");
++this.list.count; e.params[2] = toUnicode(e.params[2]); if (!(this.list.regexp) || e.params[2].match(this.list.regexp) || e.meat.match(this.list.regexp)) { this.list.push([e.params[2], e.params[3], e.meat]); }
function my_listrply (e){ this.displayHere (getMsg("my_322", [toUnicode(e.params[2]), e.params[3], e.meat]), "322");}
for (var v in client.viewsArray)
if (this.connecting)
function my_netdisconnect (e){ var msg; var reconnect = false; if (typeof e.disconnectStatus != "undefined") { switch (e.disconnectStatus) { case 0: msg = getMsg(MSG_CONNECTION_CLOSED, [this.getURL(), e.server.getURL()]); ...
var obj = client.viewsArray[v].source; if (obj != client) { var details = getObjectDetails(obj); if ("server" in details && details.server == e.server) obj.displayHere (msg, "ERROR");
this.displayHere(msg, "ERROR"); } else { for (var v in client.viewsArray) { var obj = client.viewsArray[v].source; if (obj != client) { var details = getObjectDetails(obj); if ("server" in details && details.server == e.server) obj.displayHere(msg, "ERROR"); }
function my_netdisconnect (e){ var msg; var reconnect = false; if (typeof e.disconnectStatus != "undefined") { switch (e.disconnectStatus) { case 0: msg = getMsg(MSG_CONNECTION_CLOSED, [this.getURL(), e.server.getURL()]); ...
channel.active = false; } if (!this.connecting) { this.lastServer = this.primServ;
function my_netdisconnect (e){ var msg; var reconnect = false; if (typeof e.disconnectStatus != "undefined") { switch (e.disconnectStatus) { case 0: msg = getMsg(MSG_CONNECTION_CLOSED, [this.getURL(), e.server.getURL()]); ...
if (this.deleteWhenDone) this.dispatch("delete-view"); delete this.deleteWhenDone;
function my_neterror (e){ var msg; var type = "ERROR"; if (typeof e.errorCode != "undefined") { switch (e.errorCode) { case JSIRC_ERR_NO_SOCKET: msg = MSG_ERR_NO_SOCKET; break; case JSIRC_ERR_EXHAUSTED: msg = MSG_ERR_EXHAUSTED;...
break; case JSIRC_ERR_NO_SECURE: msg = getMsg(MSG_ERR_NO_SECURE, this.unicodeName);
function my_neterror (e){ var msg; var type = "ERROR"; if (typeof e.errorCode != "undefined") { switch (e.errorCode) { case JSIRC_ERR_NO_SOCKET: msg = MSG_ERR_NO_SOCKET; break; case JSIRC_ERR_EXHAUSTED: msg = MSG_ERR_EXHAUSTED;...
var msg = (this.connecting) ? "Could not connect to " : "You are no longer connected to "; this.display (msg + this.name + " (" + e.server.connection.host + ").", "ERROR"); this.connecting = false; updateTitle(); if (client.userClose && client.getConnectionCount() == 0) window.close();
var msg; if (typeof e.errorCode != "undefined") { switch (e.errorCode) { case JSIRC_ERR_NO_SOCKET: msg = getMsg ("my_neterrorNoSocket"); break; case JSIRC_ERR_EXHAUSTED: msg = getMsg ("my_neterrorExhausted"); break; } } else msg = e.meat; this.display (msg, "ERROR");
function my_neterror (e){ var msg = (this.connecting) ? "Could not connect to " : "You are no longer connected to "; this.display (msg + this.name + " (" + e.server.connection.host + ").", "ERROR"); this.connecting = false; updateTitle(); if (client.userClose && client.getConnecti...
this.display (e.params[2], "NOTICE", this, e.server.me);
this.display (toUnicode(e.params[2], this.charset), "NOTICE", this, e.server.me);
function my_notice (e){ this.display (e.params[2], "NOTICE", this, e.server.me); }
client.munger.entries[".mailto"].enabled = false;
function my_notice (e){ var msg = e.decodeParam(2); var ary = msg.match(/^\[(\S+)\]\s+/); if (ary) { var channel = e.server.getChannel(ary[1]); if (channel) { channel.display(msg, "NOTICE", this, e.server.me); return; } } this.display(msg, "NOTICE", th...
client.globalHistory.addPage(this.getURL()); updateTitle(this); this.updateHeader(); client.updateHeader(); updateStalkExpression(this);
function my_showtonet (e){ var p = (3 in e.params) ? e.params[2] + " " : ""; var str = ""; switch (e.code) { case "004": case "005": str = e.params.slice(3).join(" "); break; case "001": // Welcome to history. client.globalHistory.addPage(this...
if (("lastServer" in this) && this.lastServer)
if (this.lastServer)
function my_showtonet (e){ var p = (3 in e.params) ? e.params[2] + " " : ""; var str = ""; switch (e.code) { case "004": case "005": str = e.params.slice(3).join(" "); break; case "001": // Welcome to history. client.globalHistory.addPage(this...
for (var c in this.lastServer.channels)
var c, u; if (this.lastServer != this.primServ)
function my_showtonet (e){ var p = (3 in e.params) ? e.params[2] + " " : ""; var str = ""; switch (e.code) { case "004": case "005": str = e.params.slice(3).join(" "); break; case "001": // Welcome to history. client.globalHistory.addPage(this...
var chan = this.lastServer.channels[c];
for (c in this.lastServer.channels) this.lastServer.channels[c].rehome(this.primServ); for (u in this.lastServer.users) this.lastServer.users[u].rehome(this.primServ); this.primServ.me.rehome(this.primServ); } for (c in this.primServ.channels) { var chan = this.primServ.channels[c];
function my_showtonet (e){ var p = (3 in e.params) ? e.params[2] + " " : ""; var str = ""; switch (e.code) { case "004": case "005": str = e.params.slice(3).join(" "); break; case "001": // Welcome to history. client.globalHistory.addPage(this...
this.lastServer = this.primServ;
function my_showtonet (e){ var p = (3 in e.params) ? e.params[2] + " " : ""; var str = ""; switch (e.code) { case "004": case "005": str = e.params.slice(3).join(" "); break; case "001": // Welcome to history. client.globalHistory.addPage(this...
client.globalHistory.addPage(this.getURL()); updateTitle(this); this.updateHeader(); client.updateHeader(); updateStalkExpression(this); if (jsenv.HAS_SERVER_SOCKETS && client.prefs["dcc.enabled"] && this.prefs["dcc.useServerIP"]) { this.pendingUserhostReply = true; this.primServ.sendData("USERHOST " + this.primSer...
function my_showtonet (e){ var p = (3 in e.params) ? e.params[2] + " " : ""; var str = ""; switch (e.code) { case "004": case "005": str = e.params.slice(3).join(" "); break; case "001": // Welcome to history. client.globalHistory.addPage(this...
this.display (getMsg("my_topicinfoMsg", [this.name, this.topicBy,
this.display (getMsg("my_topicinfoMsg", [this.unicodeName, this.topicBy,
function my_topicinfo (e){ this.display (getMsg("my_topicinfoMsg", [this.name, this.topicBy, this.topicDate]), "TOPIC"); }
this.display ("Topic for " + this.name + " was set by " + this.topicBy + " on " + this.topicDate, "TOPIC");
this.display (getMsg("my_topicinfoMsg", [this.name, this.topicBy, this.topicDate]), "TOPIC");
function my_topicinfo (e){ this.display ("Topic for " + this.name + " was set by " + this.topicBy + " on " + this.topicDate, "TOPIC"); }
e.user.display(toUnicode(e.CTCPData), "ACTION", this, e.server.me);
e.user.display(toUnicode(e.CTCPData, this), "ACTION", this, e.server.me);
function my_uaction (e){ e.user.display(toUnicode(e.CTCPData), "ACTION", this, e.server.me);}
e.user.display(toUnicode(e.CTCPData, this), "ACTION", this, e.server.me);
this.displayHere(e.CTCPData, "ACTION", e.user, "ME!");
function my_uaction (e){ e.user.display(toUnicode(e.CTCPData, this), "ACTION", this, e.server.me);}
client.munger.entries[".mailto"].enabled = false;
function my_uaction(e){ this.displayHere(e.CTCPData, "ACTION", e.user, "ME!");}
this.parent.parent.display (getMsg(MSG_UNKNOWN_CTCP, [e.CTCPCode, e.CTCPData, e.user.properNick]), "BAD-CTCP", this, e.server.me);
this.displayHere(getMsg(MSG_UNKNOWN_CTCP, [e.CTCPCode, e.CTCPData, e.user.properNick]), "BAD-CTCP", e.user, "ME!");
function my_unkctcp (e){ this.parent.parent.display (getMsg(MSG_UNKNOWN_CTCP, [e.CTCPCode, e.CTCPData, e.user.properNick]), "BAD-CTCP", this, e.server.me);}
this.parent.parent.display ("Unknown CTCP " + e.CTCPCode + "(" + e.CTCPData + ") from " + e.user.properNick,
this.parent.parent.display (getMsg("my_unkctcpMsg", [e.CTCPCode, e.CTCPData, e.user.properNick]),
function my_unkctcp (e){ this.parent.parent.display ("Unknown CTCP " + e.CTCPCode + "(" + e.CTCPData + ") from " + e.user.properNick, "BAD-CTCP", this, e.server.me); }
this.display(msg);
targetDisplayObj.display(msg);
function my_unknown (e){ if ("pendingWhoisLines" in e.server) { /* whois lines always have the nick in param 2 */ e.user = new CIRCUser(e.server, null, e.params[2]); e.destMethod = "onUnknownWhois"; e.destObject = this; return; } e.params.shift(); /* remove the code */ ...
if ("pendingWhoisLines" in e.server) { e.user = new CIRCUser(e.server, e.params[2]); e.destMethod = "onUnknownWhois"; e.destObject = this; return; }
function my_unknown (e){ e.params.shift(); /* remove the code */ e.params.shift(); /* and the dest. nick (always me) */ // Handle random IRC numerics automatically. var msg = getMsg("msg.err.irc." + e.code, null, ""); if (msg) { this.display(msg); return; } /* if it loo...
" seconds (on since " + new Date(Number(e.params[4]) * 100) +
" seconds (on since " + new Date(Number(e.params[4]) * 1000) +
function my_whoisreply (e){ var text = "egads!"; switch (Number(e.code)) { case 311: text = e.params[2] + " (" + e.params[3] + "@" + e.params[4] + ") is " + e.meat; break; case 319: text = e.params[2] + " is a member of " + e.meat; ...
[nick, e.params[3], e.params[4], e.params[6]]);
[nick, e.params[3], e.params[4], toUnicode(e.params[6])]);
function my_whoisreply (e){ var text = "egads!"; var nick = e.params[2]; switch (Number(e.code)) { case 311: text = getMsg("my_whoisreplyMsg", [nick, e.params[3], e.params[4], e.params[6]]); break; case 319: var ary = st...
delete this.whoisList[lowerNick];
if (this.whoisList) delete this.whoisList[lowerNick];
function my_whoisreply (e){ var text = "egads!"; var nick = e.params[2]; var lowerNick = this.primServ.toLowerCase(nick); var user; if (this.whoisList && (e.code != 318) && (lowerNick in this.whoisList)) this.whoisList[lowerNick] = true; if (e.user) { user = e.user; nick = user...
if (nick in e.server.users) user = e.server.users[nick];
if (e.user) user = e.user; dd("WHOIS: " + nick + ", " + e.user);
function my_whoisreply (e){ var text = "egads!"; var nick = e.params[2]; var user; if (nick in e.server.users) user = e.server.users[nick]; switch (Number(e.code)) { case 311: text = getMsg(MSG_WHOIS_NAME, [nick, e.params[3], e.params[4], ...
if (user && "messages" in user) user.displayHere (text, e.code); else e.server.parent.display(text, e.code);
this.display(text, e.code);
function my_whoisreply (e){ var text = "egads!"; var nick = e.params[2]; var user; if (nick in e.server.users) user = e.server.users[nick]; switch (Number(e.code)) { case 311: text = getMsg(MSG_WHOIS_NAME, [nick, e.params[3], e.params[4], ...
text = e.params[2] + " (" + e.params[3] + "@" + e.params[4] + ") is " + e.meat;
text = getMsg("my_whoisreplyMsg", [e.params[2], e.params[3], e.params[4], e.meat]);
function my_whoisreply (e){ var text = "egads!"; switch (Number(e.code)) { case 311: text = e.params[2] + " (" + e.params[3] + "@" + e.params[4] + ") is " + e.meat; break; case 319: var ary = stringTrim(e.meat).split(" "); ...
text = e.params[2] + " is a member of " + arraySpeak(ary);
text = getMsg("my_whoisreplyMsg2",[e.params[2], arraySpeak(ary)]);
function my_whoisreply (e){ var text = "egads!"; switch (Number(e.code)) { case 311: text = e.params[2] + " (" + e.params[3] + "@" + e.params[4] + ") is " + e.meat; break; case 319: var ary = stringTrim(e.meat).split(" "); ...
text = e.params[2] + " is attached to " + e.params[3] + " ``" + e.meat + "''";
text = getMsg("my_whoisreplyMsg3", [e.params[2], e.params[3], e.meat]);
function my_whoisreply (e){ var text = "egads!"; switch (Number(e.code)) { case 311: text = e.params[2] + " (" + e.params[3] + "@" + e.params[4] + ") is " + e.meat; break; case 319: var ary = stringTrim(e.meat).split(" "); ...
text = e.params[2] + " has been idle for " + formatDateOffset(Number(e.params[3])) + " (on since " + new Date(Number(e.params[4]) * 1000) + ")";
text = getMsg("my_whoisreplyMsg4", [e.params[2], formatDateOffset(Number(e.params[3])), new Date(Number(e.params[4]) * 1000)]);
function my_whoisreply (e){ var text = "egads!"; switch (Number(e.code)) { case 311: text = e.params[2] + " (" + e.params[3] + "@" + e.params[4] + ") is " + e.meat; break; case 319: var ary = stringTrim(e.meat).split(" "); ...
text = "End of WHOIS information for " + e.params[2];
text = getMsg("my_whoisreplyMsg5", e.params[2]);
function my_whoisreply (e){ var text = "egads!"; switch (Number(e.code)) { case 311: text = e.params[2] + " (" + e.params[3] + "@" + e.params[4] + ") is " + e.meat; break; case 319: var ary = stringTrim(e.meat).split(" "); ...
else if ((this.state == NET_CONNECTING) || (this.state == NET_WAITING))
else if (this.state == NET_CONNECTING)
function net_cancel(){ if (this.state == NET_ONLINE) { // Pull the plug on the current connection, or... this.quit(); } else if ((this.state == NET_CONNECTING) || (this.state == NET_WAITING)) { this.state = NET_CANCELLING; // ...try a reconnect (which will fail us). thi...
this.primServ.connection.disconnect(); ev = new CEvent ("network", "error", this, "onError"); ev.server = this; ev.debug = "Connect sequence was cancelled."; ev.errorCode = JSIRC_ERR_CANCELLED; this.eventPump.addEvent(ev); } else if (this.state == NET_WAITING) { this.state = NET_CANCELLING;
function net_cancel(){ if (this.state == NET_ONLINE) { // Pull the plug on the current connection, or... this.quit(); } else if ((this.state == NET_CONNECTING) || (this.state == NET_WAITING)) { this.state = NET_CANCELLING; // ...try a reconnect (which will fail us). thi...
return true;
function net_connect(requireSecurity){ if ("primServ" in this && this.primServ.isConnected) return; this.state = NET_CONNECTING; this.connectAttempt = 0; this.nextHost = 0; this.requireSecurity = requireSecurity || false; var ev = new CEvent("network", "do-connect", this, "onDoConnect"); ev....
(void 0), true))
(void 0), true, null))
function net_doconnect(e){ var c; if ((this.primServ) && (this.primServ.connection.isConnected)) return true; this.connecting = true; /* connection is considered "made" when server * sends a 001 message (see server.on001 */ var ev; if (this.connectAttempt++ >= this....
ev = new CEvent ("network", "info", this, "onInfo"); ev.msg = "Connection attempts exhausted, giving up.";
ev = new CEvent ("network", "error", this, "onError"); ev.server = this; ev.debug = "Connection attempts exhausted, giving up."; ev.errorCode = JSIRC_ERR_EXHAUSTED;
function net_doconnect(e){ var c; if ((this.primServ) && (this.primServ.connection.isConnected)) return true; this.connecting = true; /* connection is considered "made" when server * sends a 001 message (see server.on001 */ var ev; if (this.connectAttempt++ >= this....
dd ("cant make socket.");
function net_doconnect(e){ var c; if ((this.primServ) && (this.primServ.connection.isConnected)) return true; this.connecting = true; /* connection is considered "made" when server * sends a 001 message (see server.on001 */ var ev; if (this.connectAttempt++ >= this....
ev.meat = "Unable to create socket: " + ex;
ev.server = this; ev.debug = "Couldn't create socket :" + ex; ev.errorCode = JSIRC_ERR_NO_SOCKET; ev.exception = ex;
function net_doconnect(e){ var c; if ((this.primServ) && (this.primServ.connection.isConnected)) return true; this.connecting = true; /* connection is considered "made" when server * sends a 001 message (see server.on001 */ var ev; if (this.connectAttempt++ >= this....
ev = new CEvent ("network", "info", this, "onInfo"); ev.msg = "Connecting to " + this.serverList[host].name + ":" + this.serverList[host].port + ", attempt " + this.connectAttempt + " of " + this.MAX_CONNECT_ATTEMPTS + "...";
ev = new CEvent ("network", "startconnect", this, "onStartConnect"); ev.debug = "Connecting to " + this.serverList[host].name + ":" + this.serverList[host].port + ", attempt " + this.connectAttempt + " of " + this.MAX_CONNECT_ATTEMPTS + "..."; ev.host = this.serverList[host].name; ev.port = this.serverList[host].port; ...
function net_doconnect(e){ var c; if ((this.primServ) && (this.primServ.connection.isConnected)) return true; this.connecting = true; /* connection is considered "made" when server * sends a 001 message (see server.on001 */ var ev; if (this.connectAttempt++ >= this....
ev = new CEvent ("network", "info", this, "onInfo"); ev.msg = "Couldn't connect to " + this.serverList[host].name + ":" + this.serverList[host].port + ", trying next server in list..."; this.eventPump.addEvent (ev);
function net_doconnect(e){ var c; if ((this.primServ) && (this.primServ.connection.isConnected)) return true; this.connecting = true; /* connection is considered "made" when server * sends a 001 message (see server.on001 */ var ev; if (this.connectAttempt++ >= this....
this.connectAttempt--;
function net_doconnect(e){ const NS_ERROR_OFFLINE = 0x804b0010; var c; // Clear the timer, if there is one. if ("reconnectTimer" in this) { clearTimeout(this.reconnectTimer); delete this.reconnectTimer; } var ev; if (this.state == NET_CANCELLING) { if ("primServ" in this ...
var ev = new CEvent ("network", "error", this, "onError");
ev = new CEvent ("network", "error", this, "onError");
function net_doconnect(e){ var c; if ((this.primServ) && (this.primServ.connection.isConnected)) return true; var attempt = (typeof e.attempt == "undefined") ? 1 : e.attempt + 1; var host = (typeof e.lastHost == "undefined") ? 0 : e.lastHost + 1; if (attempt > this.MAX_CONNECT_ATTEMPTS) ...
var ev = new CEvent ("network", "connect", this, "onConnect");
ev = new CEvent ("network", "connect", this, "onConnect");
function net_doconnect(e){ var c; if ((this.primServ) && (this.primServ.connection.isConnected)) return true; var attempt = (typeof e.attempt == "undefined") ? 1 : e.attempt + 1; var host = (typeof e.lastHost == "undefined") ? 0 : e.lastHost + 1; if (attempt > this.MAX_CONNECT_ATTEMPTS) ...
var ev = new CEvent ("network", "do-connect", this, "onDoConnect");
ev = new CEvent ("network", "do-connect", this, "onDoConnect");
function net_doconnect(e){ var c; if ((this.primServ) && (this.primServ.connection.isConnected)) return true; var attempt = (typeof e.attempt == "undefined") ? 1 : e.attempt + 1; var host = (typeof e.lastHost == "undefined") ? 0 : e.lastHost + 1; if (attempt > this.MAX_CONNECT_ATTEMPTS) ...
this.lastServer = null;
function net_oninit (){ this.logFile = null;}
if (getErrorModule(rc) == NS_ERROR_MODULE_NETWORK) {
if (!isNaN(rc) && getErrorModule(rc) == NS_ERROR_MODULE_NETWORK) {
function netErrorToString( rc ){ if (getErrorModule(rc) == NS_ERROR_MODULE_NETWORK) { var i = 0; while (i < g_nsNetErrorCodes.length) { // rc is kept unsigned, our generated code signed, // so == won't work here: if ((g_nsNetErrorCodes[i] ^ rc) == 0) retu...
var popup = document.getElementById('abPopup'); if ( popup ) { var uri = popup.getAttribute('data'); if ( !uri ) return false; if ( editCard.card ) { SetCardValues(editCard.card, document); editCard.card.addCardToDatabase(uri); CallSaveListeners(); } } return true;
var popup = document.getElementById('abPopup'); if ( popup ) { var uri = popup.getAttribute('value'); if ( !uri ) return false; if ( editCard.card ) { SetCardValues(editCard.card, document); editCard.card.addCardToDatabase(uri); CallSaveListeners(); } } return true;
function NewCardOKButton(){ var popup = document.getElementById('abPopup'); if ( popup ) { var uri = popup.getAttribute('data'); // FIX ME - hack to avoid crashing if no ab selected because of blank option bug from template // should be able to just remove this if we are not seeing blank lines in the ab popup if ...
CallSaveListeners();
function NewCardOKButton(){ var popup = document.getElementById('abPopup'); if ( popup ) { var uri = popup.getAttribute('data'); // FIX ME - hack to avoid crashing if no ab selected because of blank option bug from template // should be able to just remove this if we are not seeing blank lines in the ab popup if ...
var prefService = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService); var alarmsBranch = prefService.getBranch("calendar.alarms."); if (alarmsBranch.getIntPref("onforevents") == 1) { var alarmOffset = Components.classes["@mozilla.org/calendar/duration;1"] .create...
setDefaultAlarmValues(calendarEvent);
function newEvent(startDate, endDate, allDay){ // create a new event to be edited and added var calendarEvent = createEvent(); if (!startDate) { startDate = gCalendarWindow.currentView.getNewEventDate(); } calendarEvent.startDate.jsDate = startDate; if (!endDate) { var MinutesToAddOn = getIntPre...
function newEventCommand()
function newEventCommand( event )
function newEventCommand(){ var startDate = gCalendarWindow.currentView.getNewEventDate(); var Minutes = Math.ceil( startDate.getMinutes() / 5 ) * 5 ; startDate = new Date( startDate.getFullYear(), startDate.getMonth(), startDate.getDate(), ...