SourceForge Logo

NAME

Boucherot::var - Some usefull global variables

SYNOPSIS

  use Boucherot::var;
  Boucherot::commmand::command("/NOTICE Pampril Hello!");
  # This will send a notice to Pampril saying "Hello!"...

DESCRIPTION

Boucherot::var create all standard ``/'' commands and the standards CTCP replies.

Boucherot::SetOfConnections contains a handler attribut that know what to do with a /COMMAND. Those functions are defined here.

Boucherot::var::command_hash

 +$ command_hash : { command1 => sub {}, ... } : Hash

This hash associate the command names to the functions that must be called each time a command ``/'' is given.

This hash can be alterated via Boucherot::command package to add or remove some commands.

Here are default commands. They're part of Boucherot kernel and they auto-feed XChat SIGNALs.

MSG

Send a message to a channel, a user or a dcc chat connection.

XMSG

Debug only. Do not use. Forgot it. Do not use.

NOTICE

Send a Notice to either a channel or a nick.

CTCP

Send a CTCP to either a channel or a nick.

NCTCP

Send a NOTICE CTCP to a channel or a nick (Also called CTCP REPLY)

QUOTE

Send a raw line to the current irc server.

JOIN

Try to join a channel.

PART

TRy to part from a channel.

NICK

Try to change nick.

MODE

Change channel or nick mode.

KICK

Try to kick someone from a channel.

WHOIS

Ask the server for infos about a nick.

WHOWAS

Ask the server for infos about a nick he saw.

PL

Perl load. Load a perlscript located into the directory

  configuration->{"dir"}{"base"}."/".configuration->{"dir"}{"scripts"}

LOAD

Perl load. Load a perlscript located into the directory

  configuration->{"dir"}{"base"}."/".configuration->{"dir"}{"scripts"}

DIALOG

Open a ``dialog''. Compatibility with XChat Only, because every even auto open a dialog (a log).

This may be used some day.

CLOSE

Close a ``dialog''. Compatibility only. (See DIALOG)

SERVER

Logon a new server. This will disconnect/reconnect even if the bot IS already on the server.

BACKUP

This will backup all logs into a backup-log-dir.

OP

Give chan-op status to somebody

DEOP

Remove chan-op status to somebody

VOICE

Give chan-voice status to somebody

DEVOICE

Remove chan-voice status to somebody

CYCLE

cycle a chan

Boucherot::var::ctcp_hash

 +$ command_hash : { ctcp1 => sub {}, ... } : Hash

This hash associate the ctcp names to the functions that must be called each time a command ``/CTCP '' is called.

This hash can be alterated via Boucherot::command package to add or remove some commands.

Here are default commands. They're part of Boucherot kernel.

PING

Return a ping reply. Should be modified to add an ignore ctpc reply list.

VERSION

Return the current Boucherot version.

TIME

Return the current local time.

AUTHORS

This class was written by Arthibus Gissehel <gissehel@vachefolle.com> in 2000.

NOTES

This package is part of the Boucherot project.