rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
for (var p in obj) robj[p] = obj[p];
if ("__proto__" in obj) { for (var p in obj) { if (obj.hasOwnProperty(p)) robj[p] = obj[p]; } robj.__proto__ = obj.__proto__; } else { for (var p in obj) robj[p] = obj[p]; }
function Clone (obj){ var robj = new Object(); for (var p in obj) robj[p] = obj[p]; return robj;}
newFolder = BMSVC.createGroup(rName)
newFolder = BMSVC.createGroup(rName);
cloneFolder: function (aFolder) { var rName = this.getProperty(aFolder, NC_NS+"Name"); var newFolder; if (this.isFolderGroup(aFolder)) newFolder = BMSVC.createGroup(rName) else newFolder = BMSVC.createFolder(rName); // Now need to append kiddies. try { RDFC.Init(BMDS, aFold...
mAttendees[i] = this.mAttendees[i].clone();
m.mAttendees[i] = this.mAttendees[i].clone();
cloneItemBaseInto: function (m) { m.mImmutable = false; m.mGeneration = this.mGeneration; m.mLastModifiedTime = this.mLastModifiedTime.clone(); m.mParent = this.mParent; m.mId = this.mId; m.mTitle = this.mTitle; m.mPriority = this.mPriority; m.mPrivacy = this....
return true;
close : function(){ /***************** Destroy Instances *********************/ //dump("**** destroying any object instances ****\n\n"); if(this.fileInst) delete this.fileInst; if(this.fileChannel) delete this.fileChannel; if(this.inputStream) delete this.inputStream; if(this.mode) ...
dump("SpellCheck: Spell Checker Closed\n");
dump("SpellCheck: Spell Checker is closing...\n");
function Close(){ dump("SpellCheck: Spell Checker Closed\n"); // Shutdown the spell check and close the dialog editorShell.CloseSpellChecking(); window.close();}
editorShell.CloseSpellChecking();
spellChecker.CloseSpellChecking();
function Close(){ dump("SpellCheck: Spell Checker Closed\n"); // Shutdown the spell check and close the dialog editorShell.CloseSpellChecking(); window.close();}
function ( aComponentName )
function ( aComponentName, aSelectItem )
closeBranches: function ( aComponentName ) { var panelChildren = document.getElementById( "panelChildren" ); var panelTree = document.getElementById( "prefsTree" ); for( var i = 0; i < panelChildren.childNodes.length; i++ ) { var currentItem = panelChil...
var openItem = document.getElementById( aComponentName );
var openItem = document.getElementById( aSelectItem );
closeBranches: function ( aComponentName ) { var panelChildren = document.getElementById( "panelChildren" ); var panelTree = document.getElementById( "prefsTree" ); for( var i = 0; i < panelChildren.childNodes.length; i++ ) { var currentItem = panelChil...
function closeFindBar() { setTimeout(delayedCloseFindBar, 0); }
closeFindBar: function () { setTimeout(findBar_DelayedCloseFindBar, 0); },
function closeFindBar(){ // ensure the dom is ready... setTimeout(delayedCloseFindBar, 0);}
messenger.Close();
window.close();
function CloseMessenger() { dump("\nClose from XUL\nDo something...\n"); messenger.Close();}
gCurrentDragOverMenu.closePopup();
gCurrentDragOverMenu.hidePopup();
function closeOpenMenu(){ if (gCurrentDragOverMenu && gCurrentTarget.firstChild != gCurrentDragOverMenu) { if (gCurrentTarget.parentNode != gCurrentDragOverMenu) { gMenuIsOpen = false; gCurrentDragOverMenu.closePopup(); gCurrentDragOverMenu = null; } }}
case REGEXP: result += "<r>" + phrase.replace(specialChars, escapeSpecial) + "</r>"; break;
function closePhrase (phrase) { if (!phrase) { previousState = OTHER; return; } switch (previousState) { case COMMENT: result += "<c>" + phrase.replace (specialChars, escapeSpecial) + "</c>"; brea...
var result = CheckAndSaveDocument(window.editorShell.GetString("BeforeClosing")); if (result == true)
if (CheckAndSaveDocument(window.editorShell.GetString("BeforeClosing"), true))
function CloseWindow(){ FinishHTMLSource(); // Close window; check to make sure document is saved var result = CheckAndSaveDocument(window.editorShell.GetString("BeforeClosing")); if (result == true) // If they saved the document, or it is unchanged, exit { if (window.InsertCharWindow) SwitchInsertCharToAn...
e.plugin.prefs["enabled"] = false;
function cmdAblePlugin(e){ if (e.command.name == "disable-plugin") { if (!e.plugin.enabled) { display(getMsg(MSG_IS_DISABLED, e.plugin.id)); return; } if (e.plugin.API > 0) { if (!e.plugin.disable()) { display(getMsg(MSG...
e.plugin.prefs["enabled"] = true;
function cmdAblePlugin(e){ if (e.command.name == "disable-plugin") { if (!e.plugin.enabled) { display(getMsg(MSG_IS_DISABLED, e.plugin.id)); return; } if (e.plugin.API > 0) { if (!e.plugin.disable()) { display(getMsg(MSG...
display(getMsg(MSG_FMT_ALIAS, [ary[1], ary[2]]));
if (ary) display(getMsg(MSG_FMT_ALIAS, [ary[1], ary[2]])); else display(getMsg(MSG_ERR_BADALIAS, aliasDefs[i]));
function cmdAlias(e){ var aliasDefs = client.prefs["aliases"]; function getAlias(commandName) { for (var i = 0; i < aliasDefs.length; ++i) { var ary = aliasDefs[i].match(/^(.*?)\s*=\s*(.*)$/); if (ary[1] == commandName) return [i, ary[2]]; } retu...
if (e.ircUrl.search(/irc:\/\
if (e.ircUrl.search(/ircs?:\/\
function cmdAttach(e){ if (e.ircUrl.search(/irc:\/\//i) != 0) e.ircUrl = "irc://" + e.ircUrl; var parsedURL = parseIRCURL(e.ircUrl); if (!parsedURL) { display(getMsg(MSG_ERR_BAD_IRCURL, e.ircUrl), MT_ERROR); return; } gotoIRCURL(e.ircUrl);}
return this.selectedNode ? (this.selectedNode.nodeType == Node.ELEMENT_NODE) : false;
return this.selectedNode ? (this.selectedNode.nodeType == nsIDOMNode.ELEMENT_NODE) : false;
cmdBlinkIsValid: function() { return this.selectedNode ? (this.selectedNode.nodeType == Node.ELEMENT_NODE) : false; },
var fbreak = getFutureBreakpoint(url, e.lineNumber);
var props = e.properties; var fbreak; if (e.parent) fbreak = e.parent; else fbreak = getFutureBreakpoint(url, e.lineNumber);
function cmdBreak (e){ if (!("isInteractive" in e)) e.isInteractive = false; if (!e.urlPattern) { /* if no input data, just list the breakpoints */ var i = 0; for (var b in console.breaks) { var brk = console.breaks[b]; display (getMsg(MSN_BP...
lineNumber: e.lineNumber });
lineNumber: e.lineNumber, props: props});
function cmdBreak (e){ if (!("isInteractive" in e)) e.isInteractive = false; if (!e.urlPattern) { /* if no input data, just list the breakpoints */ var i = 0; for (var b in console.breaks) { var brk = console.breaks[b]; display (getMsg(MSN_BP...
console.scriptManagers[url].setBreakpoint (e.lineNumber, fbreak);
console.scriptManagers[url].setBreakpoint (e.lineNumber, fbreak, props);
function cmdBreak (e){ if (!("isInteractive" in e)) e.isInteractive = false; if (!e.urlPattern) { /* if no input data, just list the breakpoints */ var i = 0; for (var b in console.breaks) { var brk = console.breaks[b]; display (getMsg(MSN_BP...
network.connectAttempt = network.MAX_CONNECT_ATTEMPTS + 1; display(getMsg(MSG_CANCELLING, network.name)); network.dispatch("disconnect");
network.cancelConnect = true; display(getMsg(MSG_CANCELLING, network.unicodeName)); if (network.isConnected()) { network.dispatch("disconnect"); } else { var ev = new CEvent("network", "do-connect", network, "onDoConnect"); network.eventPump.addEvent(ev); }
function cmdCancel(e){ var network = e.network; if (!network.connecting) { display(MSG_NOTHING_TO_CANCEL, MT_ERROR); return; } network.connectAttempt = network.MAX_CONNECT_ATTEMPTS + 1; display(getMsg(MSG_CANCELLING, network.name)); network.dispatch("disconnect");}
var nicks = combineNicks(e.nicknameList);
var nicks; if (e.canonNickList) { nicks = combineNicks(e.canonNickList); } else if (e.nicknameList) { var nickList = new Array(); for (i = 0; i < e.nicknameList.length; i++) { var user = e.channel.getUser(e.nicknameList[i]); if (!user) { display(getMsg(MSG_ERR_UNKNOWN_USER, e.nicknameList[i]), MT_ERROR); return; } ni...
function cmdChanUserMode(e){ var modestr; switch (e.command.name) { case "op": modestr = "+oooo"; break; case "deop": modestr = "-oooo"; break; case "hop": modestr = "+hhhh"; break; ...
e.server.sendData("MODE " + e.channel.name + " " +
e.server.sendData("MODE " + e.channel.encodedName + " " +
function cmdChanUserMode(e){ var modestr; switch (e.command.name) { case "op": modestr = "+oooo"; break; case "deop": modestr = "-oooo"; break; case "hop": modestr = "+hhhh"; break; ...
var user = e.channel.getUser(e.nicknameList[i]);
user = e.channel.getUser(e.nicknameList[i]);
function cmdChanUserMode(e){ var modestr; switch (e.command.name) { case "op": modestr = "+oooo"; break; case "deop": modestr = "-oooo"; break; case "hop": modestr = "+hhhh"; break; case "dehop": modestr = ...
display(getMsg(MSG_ERR_UNKNOWN_USER, e.nicknameList[i]), MT_ERROR);
display(getMsg(MSG_ERR_UNKNOWN_USER, e.nickname), MT_ERROR);
function cmdChanUserMode(e){ var modestr; switch (e.command.name) { case "op": modestr = "+oooo"; break; case "deop": modestr = "-oooo"; break; case "hop": modestr = "+hhhh"; break; case "dehop": modestr = ...
getTabForObject (client, true);
dispatch("create-tab-for-view", { view: client });
function cmdClient(e){ getTabForObject (client, true); if (!client.messages) { client.display(MSG_CLIENT_OPENED); setCurrentObject (client); client.display(MSG_WELCOME, "HELLO"); dispatch("networks"); dispatch("commands"); } else { setCurrentObject (client); }}
setCurrentObject (client);
dispatch("set-current-view", { view: client });
function cmdClient(e){ getTabForObject (client, true); if (!client.messages) { client.display(MSG_CLIENT_OPENED); setCurrentObject (client); client.display(MSG_WELCOME, "HELLO"); dispatch("networks"); dispatch("commands"); } else { setCurrentObject (client); }}
var sels = this.mTree.selectedItems; if (sels.length > 0) { var val = sels[0].__JSValue__;
var sel = getSelectedItem(); if (sel) { var val = sel.__JSValue__;
cmdCopyValue: function() { var sels = this.mTree.selectedItems; if (sels.length > 0) { var val = sels[0].__JSValue__; if (val) { var helper = XPCU.getService(kClipboardHelperCID, "nsIClipboardHelper"); helper.copyStringToClipboard(val, kGlobalClipboard); } } },
display(getMsg(MSG_DCCCHAT_ACCEPTED, [c.name, c.remoteIP, c.port]));
display(getMsg(MSG_DCCCHAT_ACCEPTED, [c.unicodeName, c.remoteIP, c.port]), "DCC-CHAT");
function cmdDCCAccept(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); function accept(c) { if (c.TYPE == "IRCDCCChat") return c.accept(); // Accept the request p...
display(getMsg(MSG_DCCFILE_ACCEPTED, [c.name, c.remoteIP, c.port]));
display(getMsg(MSG_DCCFILE_ACCEPTED, [c.filename, c.unicodeName, c.remoteIP, c.port]), "DCC-FILE");
function cmdDCCAccept(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); function accept(c) { if (c.TYPE == "IRCDCCChat") return c.accept(); // Accept the request p...
var o = client.dcc.findByID(e.nickname); if (o) return accept(o);
function cmdDCCAccept(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); function accept(c) { if (c.TYPE == "IRCDCCChat") return c.accept(); // Accept the request p...
display(getMsg(MSG_DCCCHAT_ACCEPTED, [c.unicodeName, c.remoteIP, c.port]),
display(getMsg(MSG_DCCCHAT_ACCEPTED, c._getParams()),
function cmdDCCAccept(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); function accept(c) { if (c.TYPE == "IRCDCCChat") return c.accept(); // Accept the request passed in... ...
display(getMsg(MSG_DCCFILE_ACCEPTED, [c.filename, c.unicodeName, c.remoteIP, c.port]),
display(getMsg(MSG_DCCFILE_ACCEPTED, c._getParams()),
function cmdDCCAccept(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); function accept(c) { if (c.TYPE == "IRCDCCChat") return c.accept(); // Accept the request passed in... ...
return c.accept();
{ if (!c.accept()) return false; display(getMsg(MSG_DCCCHAT_ACCEPTED, c._getParams()), "DCC-CHAT"); return true; }
function cmdDCCAccept(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); function accept(c) { if (c.TYPE == "IRCDCCChat") return c.accept(); // Accept the request passed in... ...
c.accept(pickerRv.file);
function cmdDCCAccept(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); function accept(c) { if (c.TYPE == "IRCDCCChat") return c.accept(); // Accept the request passed in... ...
if (c.TYPE == "CIRCDCCChat") display(getMsg(MSG_DCCCHAT_ACCEPTED, c._getParams()), "DCC-CHAT"); else display(getMsg(MSG_DCCFILE_ACCEPTED, c._getParams()), "DCC-FILE");
if (!c.accept(pickerRv.file)) return false; display(getMsg(MSG_DCCFILE_ACCEPTED, c._getParams()), "DCC-FILE");
function cmdDCCAccept(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); function accept(c) { if (c.TYPE == "IRCDCCChat") return c.accept(); // Accept the request passed in... ...
user = e.server.addUser(e.user.nick);
user = e.server.addUser(e.user.unicodeName);
function cmdDCCChat(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); if (!e.nickname && !e.user) return display(MSG_DCC_ERR_NOUSER); var user; if (e.nickname) user = e.server...
display(getMsg(MSG_DCCCHAT_SENT_REQUEST, [u.properNick, c.localIP, c.port]));
client.munger.entries[".inline-buttons"].enabled = true; var cmd = getMsg(MSG_DCC_COMMAND_CANCEL, "dcc-close " + c.id); display(getMsg(MSG_DCCCHAT_SENT_REQUEST, [u.unicodeName, c.localIP, c.port, cmd]), "DCC-CHAT"); client.munger.entries[".inline-buttons"].enabled = false;
function cmdDCCChat(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); if (!e.nickname && !e.user) return display(MSG_DCC_ERR_NOUSER); var user; if (e.nickname) user = e.server...
display(getMsg(MSG_DCCCHAT_SENT_REQUEST, [u.unicodeName, c.localIP, c.port, cmd]), "DCC-CHAT");
display(getMsg(MSG_DCCCHAT_SENT_REQUEST, c._getParams().concat(cmd)), "DCC-CHAT");
function cmdDCCChat(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); if (!e.nickname && !e.user) return display(MSG_DCC_ERR_NOUSER); var user; if (e.nickname) user = e.server.addUser...
var o = client.dcc.findByID(e.nickname); if (o) return o.abort();
function cmdDCCClose(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); // If there is no nickname specified, use current view. if (!e.nickname) { if (client.currentObject.TYPE == "IRCDCC...
display(getMsg(MSG_DCCCHAT_DECLINED, [c.name, c.remoteIP, c.port]));
display(getMsg(MSG_DCCCHAT_DECLINED, c._getParams()), "DCC-CHAT");
function cmdDCCDecline(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); function decline(c) { // Decline the request passed in... c.decline(); if (c.TYPE == "CIRCDCCChat") ...
display(getMsg(MSG_DCCFILE_DECLINED, [c.name, c.remoteIP, c.port]));
display(getMsg(MSG_DCCFILE_DECLINED, c._getParams()), "DCC-FILE");
function cmdDCCDecline(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); function decline(c) { // Decline the request passed in... c.decline(); if (c.TYPE == "CIRCDCCChat") ...
{
function cmdDCCDecline(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); function decline(c) { // Decline the request passed in... c.decline(); if (c.TYPE == "CIRCDCCChat") ...
}
var o = client.dcc.findByID(e.nickname); if (o) return decline(o);
function cmdDCCDecline(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); function decline(c) { // Decline the request passed in... c.decline(); if (c.TYPE == "CIRCDCCChat") ...
if (c.TYPE == "CIRCDCCChat")
if (c.TYPE == "IRCDCCChat")
function cmdDCCDecline(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); function decline(c) { // Decline the request passed in... c.decline(); if (c.TYPE == "CIRCDCCChat") ...
display(getMsg(MSG_DCCLIST_LINE, [k + 1, state, dir, type, tf, c.name, c.remoteIP, c.port]));
client.munger.entries[".inline-buttons"].enabled = true; display(getMsg(MSG_DCCLIST_LINE, [k + 1, state, dir, type, tf, c.unicodeName, c.remoteIP, c.port, cmds])); client.munger.entries[".inline-buttons"].enabled = false;
function cmdDCCList(e) { if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); var counts = { pending: 0, connected: 0, failed: 0 }; var k; // Get all the DCC sessions. var list = client.dcc.get...
user = e.server.addUser(e.user.nick);
user = e.server.addUser(e.user.unicodeName);
function cmdDCCSend(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); const DIRSVC_CID = "@mozilla.org/file/directory_service;1"; const nsIProperties = Components.interfaces.nsIProperties; ...
display(getMsg(MSG_DCCFILE_SENT_REQUEST, [u.properNick, c.localIP, c.port, file.leafName, c.size]));
client.munger.entries[".inline-buttons"].enabled = true; var cmd = getMsg(MSG_DCC_COMMAND_CANCEL, "dcc-close " + c.id); display(getMsg(MSG_DCCFILE_SENT_REQUEST, [u.unicodeName, c.localIP, c.port, file.leafName, c.size, cmd]), "DCC-FILE"); client.munger.entries[".inline-buttons"].enabled = false;
function cmdDCCSend(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); const DIRSVC_CID = "@mozilla.org/file/directory_service;1"; const nsIProperties = Components.interfaces.nsIProperties; ...
display(getMsg(MSG_DCCFILE_SENT_REQUEST, [u.unicodeName, c.localIP, c.port, file.leafName, c.size, cmd]),
display(getMsg(MSG_DCCFILE_SENT_REQUEST, [c.user.unicodeName, c.localIP, c.port, c.filename, getSISize(c.size), cmd]),
function cmdDCCSend(e){ if (!jsenv.HAS_SERVER_SOCKETS) return display(MSG_DCC_NOT_POSSIBLE); if (!client.prefs["dcc.enabled"]) return display(MSG_DCC_NOT_ENABLED); const DIRSVC_CID = "@mozilla.org/file/directory_service;1"; const nsIProperties = Components.interfaces.nsIProperties; if (!e.n...
setCurrentObject(oldView);
oldView.dispatch("set-current-view", { view: oldView });
function cmdDeleteView(e){ if (!e.view) e.view = e.sourceObject; if (e.view.TYPE == "IRCChannel" && e.view.active) e.view.part(); if (e.view.TYPE == "IRCDCCChat" && e.view.active) e.view.disconnect(); if (client.viewsArray.length < 2) { display(MSG_ERR_LAST_VIEW, MT_ERROR)...
e.reason = client.prefs["defaultQuitMsg"];
e.reason = e.network.prefs["defaultQuitMsg"];
function cmdDisconnect(e){ if ((typeof e.reason != "string") || !e.reason) e.reason = client.prefs["defaultQuitMsg"]; if (!e.reason) e.reason = client.userAgent; e.network.quit(e.reason);}
if ((typeof e.reason != "string") || !e.reason) e.reason = client.prefs["defaultQuitMsg"]; if (!e.reason) e.reason = client.userAgent;
function cmdDisconnectAll(e){ if (confirmEx(MSG_CONFIRM_DISCONNECT_ALL, ["!yes", "!no"]) != 0) return; var conNetworks = client.getConnectedNetworks(); if (conNetworks.length <= 0) { display(MSG_NO_CONNECTED_NETS, MT_ERROR); return; } if ((typeof e.reason != "string") || !e.reason...
conNetworks[i].quit(e.reason);
{ netReason = e.reason; if ((typeof netReason != "string") || !netReason) netReason = conNetworks[i].prefs["defaultQuitMsg"]; netReason = (netReason ? netReason : client.userAgent); conNetworks[i].quit(netReason); }
function cmdDisconnectAll(e){ if (confirmEx(MSG_CONFIRM_DISCONNECT_ALL, ["!yes", "!no"]) != 0) return; var conNetworks = client.getConnectedNetworks(); if (conNetworks.length <= 0) { display(MSG_NO_CONNECTED_NETS, MT_ERROR); return; } if ((typeof e.reason != "string") || !e.reason...
var sels = this.mTree.selectedItems; if (sels.length > 0) {
var sel = getSelectedItem(); if (sel) {
cmdEvalExpr: function() { var sels = this.mTree.selectedItems; if (sels.length > 0) { var win = openDialog("chrome://inspector/content/viewers/jsObject/evalExprDialog.xul", "_blank", "chrome", this, sels[0]); } },
"_blank", "chrome", this, sels[0]);
"_blank", "chrome", this, sel);
cmdEvalExpr: function() { var sels = this.mTree.selectedItems; if (sels.length > 0) { var win = openDialog("chrome://inspector/content/viewers/jsObject/evalExprDialog.xul", "_blank", "chrome", this, sels[0]); } },
return;
return null;
function cmdFBreak(e){ if (!e.urlPattern) { /* if no input data, just list the breakpoints */ var i = 0; for (var f in console.fbreaks) { var brk = console.fbreaks[f]; display (getMsg(MSN_FBP_LINE, [++i, brk.url, brk.lineNumber])); } i...
if (setFutureBreakpoint (e.urlPattern, e.lineNumber))
var fbreak = setFutureBreakpoint (e.urlPattern, e.lineNumber, e.properties); if (fbreak)
function cmdFBreak(e){ if (!e.urlPattern) { /* if no input data, just list the breakpoints */ var i = 0; for (var f in console.fbreaks) { var brk = console.fbreaks[f]; display (getMsg(MSN_FBP_LINE, [++i, brk.url, brk.lineNumber])); } i...
return fbreak;
function cmdFBreak(e){ if (!e.urlPattern) { /* if no input data, just list the breakpoints */ var i = 0; for (var f in console.fbreaks) { var brk = console.fbreaks[f]; display (getMsg(MSN_FBP_LINE, [++i, brk.url, brk.lineNumber])); } i...
dispatch ("find-frame", { frameIndex: e.frameIndex });
if (!("isInteractive" in e)) e.isInteractive = false; dispatch ("find-frame", { frameIndex: e.frameIndex, isInteractive: e.isInteractive });
function cmdFrame (e){ if (e.frameIndex != null) { if (e.frameIndex < 0 || e.frameIndex >= console.frames.length) { display (getMsg(MSN_ERR_INVALID_PARAM, ["frameIndex", e.frameIndex]), MT_ERROR); return false; } setCurrentFrameByIndex(e.frameI...
if (e.url.search(/^irc:/i) == 0)
if (e.url.search(/^ircs?:/i) == 0)
function cmdGotoURL(e){ if (e.url.search(/^irc:/i) == 0) { gotoIRCURL(e.url); return; } if (e.command.name == "goto-url-newwin") { openTopWin(e.url); return; } var window = getWindowByType("navigator:browser"); if (!window) { openTopWin(e.url); ...
if (e.url.search(/^x-cz-command:/i) == 0) { var ary = e.url.match(/^x-cz-command:(.*)$/i); e.sourceObject.frame.contentWindow.location = "javascript:void(view.dispatch('" + decodeURI(ary[1]) + "'))"; return; }
function cmdGotoURL(e){ if (e.url.search(/^irc:/i) == 0) { gotoIRCURL(e.url); return; } if (e.command.name == "goto-url-newwin") { openTopWin(e.url); return; } var window = getWindowByType("navigator:browser"); if (!window) { openTopWin(e.url); ...
setCurrentObject(oldView);
oldView.dispatch("set-current-view", { view: oldView });
function cmdHideView(e){ if (!e.view) e.view = e.sourceObject; var tb = getTabForObject(e.view); if (tb) { var i = deleteTab (tb); if (i != -1) { client.deck.removeChild(e.view.frame); delete e.view.frame; var oldView = client.currentObject; ...
client.input.style.direction = 'rtl';
client.input.setAttribute("dir", "rtl");
function cmdInputTextDirection(e){ var direction; switch (e.dir) { case "rtl": client.input.style.direction = 'rtl'; break default: // that is "case "ltr":", but even if !e.dir OR e.dir is an invalid value -> set to default direction client.input.st...
client.input.style.direction = 'ltr';
client.input.setAttribute("dir", "ltr");
function cmdInputTextDirection(e){ var direction; switch (e.dir) { case "rtl": client.input.style.direction = 'rtl'; break default: // that is "case "ltr":", but even if !e.dir OR e.dir is an invalid value -> set to default direction client.input.st...
if (!node || node.nodeType != Node.ELEMENT_NODE) return false;
if (!node || node.nodeType != nsIDOMNode.ELEMENT_NODE) return false;
cmdInspectBrowserIsValid: function() { var node = viewer.selectedNode; if (!node || node.nodeType != Node.ELEMENT_NODE) return false; var n = node.localName.toLowerCase(); return n == "tabbrowser" || n == "browser" || n == "iframe" || n == "frame" || n == "editor"; },
var sel = this.mTree.selectedItems[0]; inspectObject(sel.__JSValue__);
var sel = getSelectedItem(); if (sel) inspectObject(sel.__JSValue__);
cmdInspectInNewView: function() { var sel = this.mTree.selectedItems[0]; inspectObject(sel.__JSValue__); },
var encodeName = fromUnicode(e.server.toLowerCase(e.channelName), e.network); channel = e.server.channels[encodeName]; if (!channel)
channel = e.server.getChannel(e.channelName); if (!channel)
function cmdInvite(e) { var channel; if (!e.channelName) { channel = e.channel; } else { var encodeName = fromUnicode(e.server.toLowerCase(e.channelName), e.network); channel = e.server.channels[encodeName]; if (!channel...
/* Why are we messing with __proto__? * * Well, the short answer is so we can check the parameters passed to the * command properly. * * The long answer is that when a command is being dispatch, e.__proto__ is * set to the result of getObjectDetails() on the source view. This is for * a reason - it means that a paramet...
/* This check makes sure we only check if the *user* entered anything, and * ignore any contextual information, like the channel the command was * run on.
function cmdJoin(e){ /* Why are we messing with __proto__? * * Well, the short answer is so we can check the parameters passed to the * command properly. * * The long answer is that when a command is being dispatch, e.__proto__ is * set to the result of getObjectDetails() on the source view. ...
var oldProto = e.__proto__; e.__proto__ = Object; if (!e.channelName)
if (!e.hasOwnProperty("channelName") || !e.channelName)
function cmdJoin(e){ /* Why are we messing with __proto__? * * Well, the short answer is so we can check the parameters passed to the * command properly. * * The long answer is that when a command is being dispatch, e.__proto__ is * set to the result of getObjectDetails() on the source view. ...
e.__proto__ = oldProto;
function cmdJoin(e){ /* Why are we messing with __proto__? * * Well, the short answer is so we can check the parameters passed to the * command properly. * * The long answer is that when a command is being dispatch, e.__proto__ is * set to the result of getObjectDetails() on the source view. ...
if (e.channelName && (e.channelName.search(",") != -1))
if (e.channelName.search(",") != -1)
function cmdJoin(e){ /* Why are we messing with __proto__? * * Well, the short answer is so we can check the parameters passed to the * command properly. * * The long answer is that when a command is being dispatch, e.__proto__ is * set to the result of getObjectDetails() on the source view. ...
} if (!e.channelName) { var channel = e.channel; if (!channel) { display(getMsg(MSG_ERR_REQUIRED_PARAM, "channel"), MT_ERROR); return null; } e.channelName = channel.unicodeName; if (channel.mode.key) e.key = channel.mode.key
function cmdJoin(e){ /* Why are we messing with __proto__? * * Well, the short answer is so we can check the parameters passed to the * command properly. * * The long answer is that when a command is being dispatch, e.__proto__ is * set to the result of getObjectDetails() on the source view. ...
setCurrentObject(e.channel);
dispatch("set-current-view", { view: e.channel });
function cmdJoin(e){ if (!("charset" in e)) { e.charset = null; } else if (e.charset && !checkCharset(e.charset)) { display (getMsg(MSG_ERR_INVALID_CHARSET, e.charset), MT_ERROR); return null; } if (e.channelName && (e.channelName.search(",") != -1)) { // We can join ...
e.server.sendData("MODE " + e.channel.name + " +b *!" +
e.server.sendData("MODE " + e.channel.encodedName + " +b *!" +
function cmdKick(e) { if (!e.user) e.user = e.channel.getUser(e.nickname); if (!e.user) { display(getMsg(MSG_ERR_UNKNOWN_USER, e.nickname), MT_ERROR); return; } if (e.command.name == "kick-ban") { var hostmask = e.user.host.replace(/^[^.]+/, "*"); e.server.sendDa...
e.channelName = e.server.channelTypes[0] + e.channelName;
{ var valid = false; for (var i = 0; i < e.server.channelTypes.length; i++) { var chan = e.server.getChannel(e.server.channelTypes[i] + e.channelName); if (chan) { e.channel = chan; valid = true; break; } }
function cmdLeave(e){ if (!e.server) { display(MSG_ERR_IMPROPER_VIEW, MT_ERROR); return; } if (e.channelName) { if (arrayIndexOf(e.server.channelTypes, e.channelName[0]) == -1) e.channelName = e.server.channelTypes[0] + e.channelName; e.channelName = fromUnicode(e.c...
e.channelName = fromUnicode(e.channelName, e.network); var key = e.server.toLowerCase(e.channelName); if (key in e.server.channels) e.channel = e.server.channels[key];
if (!valid) { if (e.channel) { e.reason = e.channelName + " " + e.reason; } else { display("Huh?", MT_ERROR); return; } } }
function cmdLeave(e){ if (!e.server) { display(MSG_ERR_IMPROPER_VIEW, MT_ERROR); return; } if (e.channelName) { if (arrayIndexOf(e.server.channelTypes, e.channelName[0]) == -1) e.channelName = e.server.channelTypes[0] + e.channelName; e.channelName = fromUnicode(e.c...
e.channel = null; } else { if (!e.channel)
function cmdLeave(e){ if (!e.server) { display(MSG_ERR_IMPROPER_VIEW, MT_ERROR); return; } if (e.channelName) { if (arrayIndexOf(e.server.channelTypes, e.channelName[0]) == -1) e.channelName = e.server.channelTypes[0] + e.channelName; e.channelName = fromUnicode(e.c...
display(MSG_ERR_IMPROPER_VIEW, MT_ERROR); return;
e.channel = e.server.getChannel(e.channelName);
function cmdLeave(e){ if (!e.server) { display(MSG_ERR_IMPROPER_VIEW, MT_ERROR); return; } if (e.channelName) { if (arrayIndexOf(e.server.channelTypes, e.channelName[0]) == -1) e.channelName = e.server.channelTypes[0] + e.channelName; e.channelName = fromUnicode(e.c...
e.channelName = e.channel.encodedName;
function cmdLeave(e){ if (!e.server) { display(MSG_ERR_IMPROPER_VIEW, MT_ERROR); return; } if (e.channelName) { if (arrayIndexOf(e.server.channelTypes, e.channelName[0]) == -1) e.channelName = e.server.channelTypes[0] + e.channelName; e.channelName = fromUnicode(e.c...
e.server.sendData("PART " + e.channelName + " :" +
e.server.sendData("PART " + e.channel.encodedName + " :" +
function cmdLeave(e){ if (!e.server) { display(MSG_ERR_IMPROPER_VIEW, MT_ERROR); return; } if (e.channelName) { if (arrayIndexOf(e.server.channelTypes, e.channelName[0]) == -1) e.channelName = e.server.channelTypes[0] + e.channelName; e.channelName = fromUnicode(e.c...
e.server.sendData("PART " + e.channelName + "\n");
if (!e.reason) e.reason = ""; e.server.sendData("PART " + e.channelName + " :" + fromUnicode(e.reason, e.channel) + "\n");
function cmdLeave(e){ if (!e.server) { display(MSG_ERR_IMPROPER_VIEW, MT_ERROR); return; } if (e.channelName) { if (e.channelName[0].search(/[#&+!]/) != 0) e.channelName = "#" + e.channelName; e.channelName = fromUnicode(e.channelName, e.network); var key = e...
e.server.sendData("LIST " + e.channelName + "\n");
e.server.sendData("LIST " + fromUnicode(e.channelName, e.network) + "\n");
function cmdList(e){ e.network.list = new Array(); e.network.list.regexp = null; if (!e.channelName || !e.inputData) e.channelName = ""; e.server.sendData("LIST " + e.channelName + "\n");}
display(getMsg(MSN_SUBSCRIPT_LOADED, [e.url, rvStr]), MT_INFO);
feedback(e, getMsg(MSN_SUBSCRIPT_LOADED, [e.url, rvStr]), MT_INFO);
function cmdLoadd (e){ var ex; if (!("_loader" in console)) { const LOADER_CTRID = "@mozilla.org/moz/jssubscript-loader;1"; const mozIJSSubScriptLoader = Components.interfaces.mozIJSSubScriptLoader; var cls; if ((cls = Components.classes[LOADER_CTRID])) co...
if (e.channelName)
if (e.hasOwnProperty("channelName"))
function cmdNames(e){ if (e.channelName) { e.channel = new CIRCChannel(e.server, e.channelName); } else { if (!e.channel) { display(getMsg(MSG_ERR_REQUIRED_PARAM, "channel-name"), MT_ERROR); return; } } e.channel.pendingNamesReply = true; e.serve...
var encodedName = fromUnicode(e.channelName, e.network); e.channel = new CIRCChannel (e.server, encodedName, e.channelName);
e.channel = new CIRCChannel(e.server, e.channelName);
function cmdNames(e){ if (e.channelName) { var encodedName = fromUnicode(e.channelName, e.network); e.channel = new CIRCChannel (e.server, encodedName, e.channelName); } else { if (!e.channel) { display(getMsg(MSG_ERR_REQUIRED_PARAM, "channel-name"), MT_ERROR); ...
setCurrentObject(network);
dispatch("set-current-view", { view: network });
function cmdNetwork(e){ if (!(e.networkName in client.networks)) { display (getMsg(MSG_ERR_UNKNOWN_NETWORK, e.networkName), MT_ERROR); return; } var network = client.networks[e.networkName]; if (!("messages" in network)) network.displayHere(getMsg(MSG_NETWORK_OPENED, network.name...
a.setAttribute("href", "irc: var t = newInlineText(net.name);
a.setAttribute("href", (isSecure ? "ircs: var t = newInlineText(net.unicodeName);
function cmdNetworks(e){ const ns = "http://www.w3.org/1999/xhtml"; var span = document.createElementNS(ns, "html:span"); span.appendChild(newInlineText(MSG_NETWORKS_HEADA)); var netnames = keys(client.networks).sort(); var lastname = netnames[netnames.length - 1]; for (n in netnames) {...
if (e.server) e.server.sendData ("NICK " + e.nickname + "\n");
if (e.server) e.server.changeNick(e.nickname);
function cmdNick(e){ if (e.server) e.server.sendData ("NICK " + e.nickname + "\n"); if (e.network) e.network.prefs["nickname"] = e.nickname; else client.prefs["nickname"] = e.nickname;}
var url = prompt (MSG_OPEN_URL);
var url = prompt (MSG_OPEN_URL, "http:
function cmdOpenURL (e){ var url = prompt (MSG_OPEN_URL); if (url) return dispatch ("find-url",{url: url}); return null;}
else if (e.command.name == "user-motif")
else if (e.command.name == "user-pref")
function cmdPref (e){ var msg; var pm; if (e.command.name == "network-pref") { pm = e.network.prefManager; msg = MSG_FMT_NETPREF; } else if (e.command.name == "channel-pref") { pm = e.channel.prefManager; msg = MSG_FMT_CHANPREF; } else if (e.command.name == "us...
setCurrentObject(user);
dispatch("set-current-view", { view: user });
function cmdQuery(e){ var user = openQueryTab(e.server, e.nickname); setCurrentObject(user); if (e.message) { e.message = filterOutput(e.message, "PRIVMSG", "ME!"); user.display(e.message, "PRIVMSG", "ME!", user); user.say(e.message, e.sourceObject); } return user;}
if ((typeof e.reason != "string") || !e.reason) e.reason = client.prefs["defaultQuitMsg"]; if (!e.reason) e.reason = client.userAgent;
function cmdQuit(e){ if ((typeof e.reason != "string") || !e.reason) e.reason = client.prefs["defaultQuitMsg"]; if (!e.reason) e.reason = client.userAgent; client.quit(e.reason); window.close();}
e.channel.part(e.reason);
e.channel.dispatch("part", { reason: e.reason, noDelete: true });
function cmdRejoin(e){ if (e.channel.joined) { if (!e.reason) e.reason = ""; e.channel.part(e.reason); } e.channel.join(e.channel.mode.key);}
if (layout == "") layout = DEFAULT_VURLS;
function cmdRestoreLayout (e){ if (!e.name) { var list = console.prefManager.listPrefs("layoutState."); for (var i = 0; i < list.length; ++i) list[i] = list[i].substr(12); list.push("factory"); display (getMsg(MSN_LAYOUT_LIST, list.sort().join(MSG_COMMASP))); retur...
var file = fopen (e.targetFile, MODE_WRONLY | MODE_CREATE | MODE_TRUNCATE);
var file = fopen (e.targetFile, ">");
function cmdSaveProfile (e){ function onComplete (i) { var msg = getMsg(MSN_PROFILE_SAVED, getURLSpecFromFile(file.localFile)); display (msg); console.status = msg; file.close(); }; var templatePfx = "profile.template."; var i; var ext; if (!e.targetFile || e...
else if (e.password) { client.networks[name].serverList[0].password = e.password; }
function cmdServer(e){ var name = e.hostname.toLowerCase(); if (!e.port) e.port = 6667; else if (e.port != 6667) name += ":" + e.port; if (!(name in client.networks)) { /* if there wasn't already a network created for this server, * make one. */ client.addNetwork(n...
password: e.password}])
password: e.password}]);
function cmdServer(e){ var name = e.hostname.toLowerCase(); if (!e.port) e.port = 6667; else if (e.port != 6667) name += ":" + e.port; if (!(name in client.networks)) { /* if there wasn't already a network created for this server, * make one. */ client.addNetwork(n...
return client.connectToNetwork(name);
return client.connectToNetwork(name, false);
function cmdServer(e){ var name = e.hostname.toLowerCase(); if (!e.port) e.port = 6667; else if (e.port != 6667) name += ":" + e.port; if (!(name in client.networks)) { /* if there wasn't already a network created for this server, * make one. */ client.addNetwork(n...
if (e.jsdValue instanceof jsdIStackFrame) console.currentEvalObject = e.jsdValue; else console.currentEvalObject = e.jsdValue.getWrappedValue();
if (!(e.jsdValue instanceof jsdIStackFrame)) { e.jsdValue = e.jsdValue.getWrappedValue(); } if (e.jsdValue == console.currentEvalObject) { var frame = getCurrentFrame(); if (frame) e.jsdValue = frame; else e.jsdValue = console; } console.currentEvalObject = e.jsdValue;
function cmdSetEvalObj (e){ if (e.jsdValue instanceof jsdIStackFrame) console.currentEvalObject = e.jsdValue; else console.currentEvalObject = e.jsdValue.getWrappedValue();}