rem: if (client.currentObject.TYPE == "IRCChannel") { var mynick = e.server.me.nick; client.currentObject.display ("NOTICE this!", "NOTICE", "!ME"); client.currentObject.display ("And hear this.", "PRIVMSG", "!ME"); client.currentObject.display ("But dont do this?", "ACTION", "!ME"); client.currentObject.display ("or you'll get KICKed", "KICK", "!ME"); client.currentObject.display ("JOIN in the fun.", "JOIN", "!ME"); client.currentObject.display ("PART when you want.", "PART", "!ME"); client.currentObject.display ("But never QUIT", "QUIT", "!ME"); 
add: function test (from, to, msg) { var fromText = (from != me) ? from.TYPE + " ``" + from.name + "''" : "you"; var toText   = (to != me) ? to.TYPE + " ``" + to.name + "''" : "you";  client.currentObject.display ("Normal message from " + fromText + " to " + toText + ((msg) ? ": " + msg : ""), "PRIVMSG", from, to); client.currentObject.display ("Action message from " + fromText + " to " + toText + ((msg) ? ": " + msg : ""), "ACTION", from, to); client.currentObject.display ("Notice message from " + fromText + " to " + toText + ((msg) ? ": " + msg : ""), "NOTICE", from, to); }  test (sampleUser, me); /* from user to me */ test (me, sampleUser); /* me to user */  client.currentObject.display ("Sample URL <http: "message.", "PRIVMSG", sampleUser, me); client.currentObject.display ("Sample text styles *bold*, _underline_" + ", /italic/, |teletype|, #SmallCap# " + "message.", "PRIVMSG", sampleUser, me); client.currentObject.display ("Sample emoticon :) :( :~( :0 :/ :P " + ":| (* message.", "PRIVMSG", sampleUser, me); client.currentObject.display ("Sample Rheeeeeeeeeet! message.", "PRIVMSG", sampleUser, me);   if (viewType == "IRCChannel") { test (sampleUser, sampleChannel); /* user to channel */ test (me, sampleChannel);         /* me to channel */ client.currentObject.display ("Sample Topic message", "TOPIC", sampleUser, sampleChannel); client.currentObject.display ("Sample Join message", "JOIN", sampleUser, sampleChannel); client.currentObject.display ("Sample Part message", "PART", sampleUser, sampleChannel); client.currentObject.display ("Sample Kick message", "KICK", sampleUser, sampleChannel); client.currentObject.display ("Sample Quit message", "QUIT", sampleUser, sampleChannel); client.currentObject.display (me.nick + ": Sample /stalk match.", "PRIVMSG", sampleUser, sampleChannel); client.currentObject.display ("Sample text styles *bold*, " + "_underline_, /italic/, " + "|teletype|, #SmallCap# message.", "PRIVMSG", me, sampleChannel); }  
context: function cli_testdisplay (e){    client.currentObject.display ("Hello World!", "HELLO");    client.currentObject.display ("Nothing is wrong.", "ERROR");    client.currentObject.display ("Use not, want not.", "USAGE");    client.currentObject.display ("Don't Panic", "HELP");    client.currentObject.display ("NOTICE this!", "NOTICE", "Mozilla");    client.currentObject.display ("And hear this.", "PRIVMSG", "Mozilla");    client.currentObject.display ("But dont do this?", "ACTION", "Mozilla");    client.currentObject.display ("or you'll get KICKed", "KICK", "Mozilla");    client.currentObject.display ("JOIN in the fun.", "JOIN", "Mozilla");    client.currentObject.display ("PART when you want.", "PART", "Mozilla");    client.currentObject.display ("But never QUIT", "QUIT", "Mozilla");    if (client.currentObject.TYPE == "IRCChannel")    {        var mynick = e.server.me.nick;        client.currentObject.display ("NOTICE this!", "NOTICE", "!ME");        client.currentObject.display ("And hear this.", "PRIVMSG", "!ME");        client.currentObject.display ("But dont do this?", "ACTION", "!ME");        client.currentObject.display ("or you'll get KICKed", "KICK", "!ME");        client.currentObject.display ("JOIN in the fun.", "JOIN", "!ME");        client.currentObject.display ("PART when you want.", "PART", "!ME");        client.currentObject.display ("But never QUIT", "QUIT", "!ME");    }    return true;    }   
meta: 3298	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3298/bdcd48e1ca17848467de7b0eedf5a486db3b4464/handlers.js/clean/xul/content/handlers.js