


IRC Class

IrcObject objname

Methods

    objname get_mySiteName

	Return the hostname of the machine Tcl is running on.

    objname open_connection

	Open a connection to the IRC server.

    objname set_normal_names

	Set longName and userName public variables
	from the login name and long name.

    objname send message

	Send "message" to the IRC server.

    objname debug text

	If debugging is enabled, print the text, otherwise don't.

    objname login

	Start up the session with the IRC server by logging in,
	setting the nickname, and setting the default channel.

    objname log_message message

	If logging is enabled, log the message to the log file.

    objname startlog

	Begin logging.  Writes to irc-log.

    objname stoplog

	Stop logging.

    objname process_server_line line

	Cracks replies from the IRC server.

	The following variables get set:

	    originatorRealname - the "real" name of the originator of the message
	    originatorNickname - the irc nickname of the message originator
	    originatorTarget - the target of the message originator
	    serverName
	    originatorBody 
	    originatorCommand

    objname on command procName target

        Set up a trigger so that when "command" occurs, procName
        (with optional target) will be executed.

    objname on_body command procName target

        Set up a trigger so that when "command" is seen at the
        beginning of the body, procName (with optional target) 
        will be executed.

    objname kick channel user

	Attempt to kick the specified user off of the specified
	channel.

    objname join_channel channel

	Attempt to join the specified channel.

    objname channel channel

	Join the specified channel and make it be the default channel.

    objname nick user

	Set the user's nickname to "user".

    objname channel_message channel message

	Send the specified message to the specified channel.

    objname reply_message message

	Send "message" as a reply to the last message received.

    objname message message

	Send "message" to the default channel.

    objname channel_action channel action

	Send an action message to the specified channel.

    objname action action

	Send "action" to the default channel.

    objname who [channel]

	List who is on the specified channel, or the default channel
	if none is specified.

    objname whois nickname

	Do a "whois" on "nickname".

    list_channel [channel]

    topic topic

	Set the channel topic to "topic".

    invite nickname channel

	Send in invitation to "nickname" to join channel "channel".

    version [server_id]

	Find out the current version.

    ikill nickname

	Kill the user "nickname".

    stats [server]

	Get stats from the specified server, or the current user if
	none is specified.

    summon user

	Send a summon message to the specified user.

    users host

	Find out what users are on irc server "host".

    notice nickname [text]

	Send a notice message about "nickname", with optional text.

    ping [daemon1] [daemon2]

	Do a ping between irc servers, or between your server and your
	client.

    strace [server]

	Send a trace command to the specified server.

    part [channel]

	Depart from the specified channel.

    quit [message]

	Exit the irc session, with optional goodbye message.

    leave [message]

	Depart from the current channel.

    mode [args]

	Set the irc mode for the channel.

    hide nickname
    hide id@host

	Send a server "hide" message for the specified nickname or
	user.

    unhide [user...]

	Send a RESET command for each ID specified, or just a reset
	command if no IDs are specified.

    status [message]

	Send a STATUS command to the irc server.

    alias [alias]

	Send an ALIAS command to the irc server.

    expand 1
    expand 0

	Send an EXPAND command to the irc server.

    time [server]

	Send a TIME command to the specified server, or to the
	one you're currently connected to if none is specified.

    names [channel]

	List who is on the specified channel, or the default channel
	if none is specified.

    admin [server]

	Tell the name of the administrator of the specified server,
	or the current server if none is specified.

    grph receiver message

	Send a graphics message to a user.

    voice receiver message

	Send a voice message to a user.

    xtra receiver message

	Send a program-specific message to the user.

    whois nickname

	Send an IRC WHOWAS command to the current server for
	nickname.

    user userName siteName serverName longName

	Log into IRC with your user name, site name, server name, and
	long name.

    finger user

	Finger the specified user and return the result.

    standard_message messageTypeText

	Process a received message in the standard way.

    display_message

	Display PRIVMSGs.

    display_action

	Display actions.

    display_notice

	Displays notices.

    announce_join

	Display joins.

    announce_departure

	Display parts.

    announce_new_nickname

	Displays nickanme changes.

    announce_mode

	Displays mode changes.

    announce_quit

	Displays quit messages.

    report_kickoff

	Displays kickoff messages.

    pong

	Responds to a ping from the server.

    t who command

	Send command to another tcl client.

    required_actions

	Set up "on" commands for PRIVMSGs and PINGs.

    standard_actions

	Set up "on" commands for notices, joins, parts, nicks,
	quits, kicks, modes, etc.

    receive_fp

	return the FP of the receive handle.

    list_receive_filehandles

	Return the lsit of all of the receive handles.


