rem: var sampleChannel = {TYPE: "IRCChannel", name: "#mojo"}; 
add: var sampleChannel = {TYPE: "IRCChannel", name: "#mojo", displayName: "#mojo"}; 
context: function cmdTestDisplay(e){    display(MSG_TEST_HELLO, MT_HELLO);    display(MSG_TEST_INFO, MT_INFO);    display(MSG_TEST_ERROR, MT_ERROR);    display(MSG_TEST_HELP, MT_HELP);    display(MSG_TEST_USAGE, MT_USAGE);    display(MSG_TEST_STATUS, MT_STATUS);    if (e.server && e.server.me)    {        var me = e.server.me;        var sampleUser = {TYPE: "IRCUser", nick: "ircmonkey",                          name: "IRCMonkey", properNick: "IRCMonkey",                          host: ""};        var sampleChannel = {TYPE: "IRCChannel", name: "#mojo"};        function test (from, to)        {            var fromText = (from != me) ? from.TYPE + " ``" + from.name + "''" :                MSG_YOU;            var toText   = (to != me) ? to.TYPE + " ``" + to.name + "''" :                MSG_YOU;                        display (getMsg(MSG_TEST_PRIVMSG, [fromText, toText]),                     "PRIVMSG", from, to);            display (getMsg(MSG_TEST_ACTION, [fromText, toText]),                     "ACTION", from, to);            display (getMsg(MSG_TEST_NOTICE, [fromText, toText]),                     "NOTICE", from, to);        }                test (sampleUser, me); /* from user to me */        test (me, sampleUser); /* me to user */        display(MSG_TEST_URL, "PRIVMSG", sampleUser, me);        display(MSG_TEST_STYLES, "PRIVMSG", sampleUser, me);        display(MSG_TEST_EMOTICON, "PRIVMSG", sampleUser, me);        display(MSG_TEST_RHEET, "PRIVMSG", sampleUser, me);        display(unescape(MSG_TEST_CTLCHR), "PRIVMSG", sampleUser, me);        display(unescape(MSG_TEST_COLOR), "PRIVMSG", sampleUser, me);        display(MSG_TEST_QUOTE, "PRIVMSG", sampleUser, me);        if (e.channel)        {            test (sampleUser, sampleChannel); /* user to channel */            test (me, sampleChannel);         /* me to channel */            display(MSG_TEST_TOPIC, "TOPIC", sampleUser, sampleChannel);            display(MSG_TEST_JOIN, "JOIN", sampleUser, sampleChannel);            display(MSG_TEST_PART, "PART", sampleUser, sampleChannel);            display(MSG_TEST_KICK, "KICK", sampleUser, sampleChannel);            display(MSG_TEST_QUIT, "QUIT", sampleUser, sampleChannel);            display(getMsg(MSG_TEST_STALK, me.nick),                    "PRIVMSG", sampleUser, sampleChannel);            display(MSG_TEST_STYLES, "PRIVMSG", me, sampleChannel);        }    }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/7e998d1a2e81d56757ccb1d104bf94e8be456a0d/commands.js/buggy/extensions/irc/xul/content/commands.js