Announcing net-nittin-irc, a Common Lisp IRC library.
Erik Enge <[email protected]> Wed, 05 Nov 2003 14:23:31 -0500
| Newsgroups | gmane.lisp.clump |
|---|---|
| Organization | Professional Reviews Inc. |
| Message-ID | <[email protected]> |
net-nittin-irc is a Common Lisp IRC client library that features DCC,
CTCP and all relevant commands from the IRC RFCs (RFC2810, RFC2811 and
RFC2812). It uses ASDF and has been tested mostly on SBCL but should
work for other implementations with little or no extra code.
There is currently no release but once I make the DCC code a little bit
nicer there will be a 0.9.9 release of some sorts (probably at the end
of this week).
Quick demo:
* (require :net-nittin-irc)
[snip]
* (in-package :irc) ; irc is a package nickname
#<PACKAGE "NET-NITTIN-IRC">
* (setf con (connect :server "localhost"))
#<CONNECTION localhost {94C51D9}>
* (read-message-loop con)
3277046521: NOTICE: NIL AUTH "*** Looking up your hostname..."
3277046521: NOTICE: NIL AUTH "*** Checking ident"
3277046521: NOTICE: NIL AUTH "*** Got ident response"
3277046521: NOTICE: NIL AUTH "*** Found your hostname"
3277046521: RPL_WELCOME: localhost. cl-irc "Welcome to the Internet Relay Network cl-irc"
[snip]
3277046521: ERR_NOMOTD: localhost. cl-irc "MOTD File is missing"
^C to interrupt
* (join con "#test")
"JOIN #test^M
"
* (read-message-loop con)
3277046566: JOIN: cl-irc "#test"
3277046566: RPL_NAMREPLY: localhost. cl-irc = #test "cl-irc @kire "
3277046566: RPL_ENDOFNAMES: localhost. cl-irc #test "End of /NAMES list."
^C to interrupt
* (whois con "kire")
"WHOIS kire^M
"
* (read-message-loop con)
3277046575: RPL_WHOISUSER: localhost. cl-irc kire eenge localhost. * "Erik Enge"
[snip]
3277046575: RPL_ENDOFWHOIS: localhost. cl-irc kire "End of /WHOIS list."
* (describe (find-user con "kire"))
#<USER kire!eenge@localhost. "Erik Enge" {9205951}>
is an instance of class #<STANDARD-CLASS USER>.
The following slots have :INSTANCE allocation:
REALNAME "Erik Enge"
HOSTNAME "localhost."
USERNAME "eenge"
NICKNAME "kire"
The library features hooking capabilities which should make it
relatively easy to use and extend.
Jochen Schmidt laid the groundwork for this library with his Weird-IRC
IRC client.
More information at:
<http://www.common-lisp.net/project/net-nittin-irc/>
Erik.