Boucherot::var - Some usefull global variables
use Boucherot::var;
Boucherot::commmand::command("/NOTICE Pampril Hello!");
# This will send a notice to Pampril saying "Hello!"...
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.
+$ 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.
Send a message to a channel, a user or a dcc chat connection.
Debug only. Do not use. Forgot it. Do not use.
Send a Notice to either a channel or a nick.
Send a CTCP to either a channel or a nick.
Send a NOTICE CTCP to a channel or a nick (Also called CTCP REPLY)
Send a raw line to the current irc server.
Try to join a channel.
TRy to part from a channel.
Try to change nick.
Change channel or nick mode.
Try to kick someone from a channel.
Ask the server for infos about a nick.
Ask the server for infos about a nick he saw.
Perl load. Load a perlscript located into the directory
configuration->{"dir"}{"base"}."/".configuration->{"dir"}{"scripts"}
Perl load. Load a perlscript located into the directory
configuration->{"dir"}{"base"}."/".configuration->{"dir"}{"scripts"}
Open a ``dialog''. Compatibility with XChat Only, because every even auto open a dialog (a log).
This may be used some day.
Close a ``dialog''. Compatibility only. (See DIALOG)
Logon a new server. This will disconnect/reconnect even if the bot IS already on the server.
This will backup all logs into a backup-log-dir.
Give chan-op status to somebody
Remove chan-op status to somebody
Give chan-voice status to somebody
Remove chan-voice status to somebody
cycle a chan
+$ 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.
Return a ping reply. Should be modified to add an ignore ctpc reply list.
Return the current Boucherot version.
Return the current local time.
This class was written by Arthibus Gissehel <gissehel@vachefolle.com> in 2000.
This package is part of the Boucherot project.