Tcl Library Source Code

Documentation
Login


[ Main Table Of Contents | Table Of Contents | Keyword Index | Categories | Modules | Applications ]

NAME

picoirc - Small and simple embeddable IRC client.

Table Of Contents

SYNOPSIS

package require Tcl 8.6 9
package require picoirc ?0.14.0?

::picoirc::connect callback nick ?password? url
::picoirc::post context channel message

DESCRIPTION

This package provides a general purpose minimal IRC client suitable for embedding in other applications. All communication with the parent application is done via an application provided callback procedure. Each connection has its own state so you can hook up multiple servers in a single application instance.

To initiate an IRC connection you must call picoirc::connect with a callback procedure, a nick-name to use on IRC and the IRC URL that describes the connection. This will return a variable name that is the irc connection context. See CALLBACK for details.

This package is a fairly simple IRC client. If you need something with more capability investigate the irc package.

COMMANDS

CALLBACK

The callback must look like:

proc Callback {context state args} {
}

where context is the irc context variable name (in case you need to pass it back to a picoirc procedure). state is one of a number of states as described below.

SEE ALSO

rfc 1459

KEYWORDS

chat, irc

CATEGORY

Networking