Thanks to Leaf Nunes (le...@mozilla.org) for checking in the
Makefile.win! Windows users can now try it out as well. To build in
Windows, cd extensions/irc and make. Last night's Windows build
seemed somewhat unstable running test2.html, possibly because of the
heavy use of CSS or dynamic DOM additions. If Mozilla crashes shortly
after connecting to IRC, try using test1.html instead. It's an older
version of the client, which doesn't require these features .
Hopefully this will be resolved shortly.
Finally, I never mentioned how to use the client, so here's a short
intro...
/nick <new-nick>, /me <action>, /join #<channel>, /part #<channel>,
and /quit <reason> work as in other clients.
(However, /quit-ing will crash the client when you unload the page)
/name <new-name>
Changes your ident for servers that don't use the identd service.
/desc <new-desc>
Changes your IRCName (The long name in your /whois information)
/network <networkname>
Changes the active network. You will see the active network in lower
left corner of the client, efnet [no-channel] is the default.
EFNet, HybridNet, and LinuxNet are currently hardcoded into the test
clients. If you'd like to test on an alternet network, or need to
change the server it connects to, see
http://lxr.mozilla.org/mozilla/source/extensions/irc/xul/tests/test2-static.js#299
Currently proxies are *not* supported :(
/connect
Connects to the active network. If more than one server is included
in the network, it will attempt to connect to the first in the list
first, and if that fails, it will move on. If the end of the list is
reached, the connect fails.
/disconnect
Disconnects from the active network.
/channel
Changes the active channel. This is the channel that messages are
sent to. Currently this has nothing to do with what window you're
viewing, although that will change soon. The active channel is
displayed next to the active network in the lower left corner.
/eval <script>
Executes <script> as JavaScript code. The small window in the top
right corner of the client is a dump of the "current" object, followed
by a dump of the entire |client| object. You can use /eval to poke
around these objects. For example, /eval client.channel.topic;, will
show the topic of the current channel, while /eval
client.channel.users["mozbot"].say ("foo!"); will send the message
"foo!" to the user "mozbot" (/msg in most clients.)
/alias <command-name> <script>
Makes a new alias.
See the code at...
http://lxr.mozilla.org/mozilla/source/extensions/irc/xul/tests/test2-static.js#38
/raw <irc-command>
Sends a raw command to the IRC server. Similar to /quote in some
clients.
....
When you first connect to a network, using (for example)
/network efnet
/connect
You will see "[ACT] efnet" in the Views... list. This means that
there is activity at the efnet 'level', click on the list item to view
the activity. If you then join a channel using (for example)
/join #linux
You will see "[ACT] #linux" in the Views... list. Click on the list
item to view the channel output.
....
If you're interested in hacking the / commands, start by looking
here...
http://lxr.mozilla.org/mozilla/source/extensions/irc/xul/tests/test2-handlers.js#218
Happy chatting,
Rob.