SYNOPSIS
nethirc [-m?] [-b dbfile] [-f rcfile] [-h hostname] [-i ircname] [-j
channel] [-l localport] [-n nick] [-p port] [-s server] [-u username]
[--dump-database] [--help] [--database=dbfile] [--hostname=hostname]
[--rc-file=rcfile] [--join=channel] [--local-port=localport]
[--nick=nick] [--port=port] [--server=server] [--username=username]
DESCRIPTION
nethirc is an IRC client written almost entirely in Perl, with the help
of the "POE::Component::IRC" module from CPAN. It is named nethirc
because of the influence of nethack, which is the theme behind many of
the things that nethirc displays on your screen.
Switches
nethirc's command line interface is intentionally a bit different than
that of ircII, arguably the standard IRC client.
-b dbfile
--database=dbfile
Use a database of quips, quotes, and other text found in dbfile.
This file can be created with the -m or --dump-database switches,
and modified with a text editor. This is a YAML file.
-f rcfile
--rc-file=rcfile
Use the named file for initialization instead of the default
"~/.nethirc". This is also a YAML file.
-h hostname
--hostname=hostname
Assert a particular hostname to IRC servers. They may not always
like it. This switch can be used to pick an interface to which to
bind on a multi-homed host.
-i ircname
--ircname=ircname
Use the indicated witty comment as your "real name" on IRC. The
default may be less than flattering, if you do not set the "IRC-
NAME" environment variable.
-j channel
--join=channel
For the first server which you specify, join the indicated channel.
You may specify this switch more than once. By default, you join
no channels.
-l localport
--local-port=localport
Use the indicated port for your client instead of letting the oper-
ating system pick one for you.
default. The default is usually what you want.
-s server
--server=server
Connect to the named server. If you do not have a startup file
(see -f and --rc-file), you must specify this switch.
-u username
--username=username
Use the indicated user name, instead of choosing a default (proba-
bly your login name).
-?
--help
Ask for help.
The Initialization File
The initialization file (see the -f and --rc-file switches) is a YAML
file that has at least one top-level section, called "nethirc". Inside
it are several servers to which to connect, and how to do it. A mini-
mal example would be:
nethirc:
- Server: irc.example.com
There can also be a section called "commands", which are executed after
the first IRC server greets you. They are executed just as if they
were typed. For your own safety, please do not put anything that
causes network traffic in the "commands" section.
A more complex example of an initialization file:
nethirc:
- Server: irc.example.com
Nick: Eggplant
- Server: irc.freenode.net
Nick: Aubergine
Ircname: le plante du egg
channels:
- "#nethirc"
- "#perl"
- Server: irc.example.dal.net
Nick: Nasu-chan
Hostname: I.know.stupid.DNS.tricks
LocalPort: 23456
Port: 12345
Username: notvegan
channels:
- "#lasagna" commands:
- "/bigbrother on"
- "/count start nethirc.counts"
If you see an interesting message appear on your screen, look for its
counterpart in the database file. Note that a lot of things in here
may not make sense to you unless you know the source somewhat. But
don't let it stop you from trying. :-) Perhaps the most interesting
portions of the file are the "channel_mode_comments", "complaints",
formats, and "self_mode_comments".
USAGE
Start the client. Have fun. Yell at people. There is a full command
set at your disposal. Those used to ircII should have little problem
with the default command set.
EXIT STATUS
Does it really matter?
FILES
"$HOME/.nethirc"
ENVIRONMENT
The "IRCNAME" and "IRCNICK" variables retain their usual meaning.
SEE ALSO
RFC1459, perl(1), nethack(6), fortune(6), POE::Component::IRC, YAML.
BUGS
The command set is not complete yet.
The event set is not complete yet. Need to generate more error-type
events.
This client is not very oper-friendly.
DCC support is nonexistent. This may actually be a feature.
Should provide various files for i18n/l10n, based on locale, LC_LANG,
whatever. The mechanism we use should support this...once we write it.
(Probably based on various database files.)
AUTHOR
Tony Monroe <tmonroe plus perl at nog dot net>, sometimes known as Egg-
plant on EFnet.
HISTORY
nethirc was written in a fit of experimentation and madness and frus-
tration with a previous creation known as hoserchat. The main idea
was, of course, "Wouldn't a Nethack-like IRC client be cool? Or at
least amusing?" And so, several months of on-and-off development time
later, I felt that the world won't wince too much at the sight of ver-
sion 0.01 of this program. So it was released.
It went through a few revisions after that, but it suffered because its
objects, as presented in version 3.4 and later.
perl v5.8.8 2005-03-02 NETHIRC(1)
Man(1) output converted with
man2html