From c2252b6c67df64995b336c27fb175d504af20675 Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Wed, 21 Jul 2010 17:25:07 +0100 Subject: added some stuff to the guide, and cleaned up some irssi.pod function descs --- docs/Irssi.pod | 51 ++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 15 deletions(-) (limited to 'docs/Irssi.pod') diff --git a/docs/Irssi.pod b/docs/Irssi.pod index fc7e81f..97e4799 100644 --- a/docs/Irssi.pod +++ b/docs/Irssi.pod @@ -27,6 +27,8 @@ This documentation has been split into a number of pages, each documenting a particular class or pseudo-class. The following list contains all of these additional pages. +B + =over 4 =item L @@ -131,6 +133,7 @@ returns a list of all L. =head3 C +B returns a list of all L =head2 Signals @@ -282,6 +285,20 @@ Bind a command string C<$cmd> to call function C<$func>. C<$func> can be either a string or coderef. C<$category> is an optional string specifying the category to display the command in when C is used. +When a command is invoked, either by the user typing C, the +handler function will be called. + +It will receive the following parameters, passed in C<@_>: + + my ($argument_string, $server_obj, $window_item_obj) = @_; + +The argument string must be processed by the handler to split it into +individual words if necessary. + +The L function can be +used to process options (beginning with a single dash), and will also return the +remainder of the string to be processed as desired. + =head4 C Run subcommands for `cmd'. First word in `data' is parsed as @@ -291,7 +308,8 @@ L `item'. Call command_runsub in handler function for `cmd' and bind with command_bind("`cmd' `subcmd'", subcmdfunc[, category]); -B +See the L for +further details. =head4 C @@ -365,40 +383,43 @@ For example: =head2 Settings +Settings are a way to permanently store values that your script may wish to use. +They are also easily manipulable by the user through the C command, making +them a good way to allow configuration of your script. =head3 Creating New Settings -=head4 C +If a setting does not currently exist, it must first be registered with Irssi +using one of the C functions. -=head4 C +=head4 C -=head4 C +=head4 C -=head4 C +=head4 C -=head4 C +=head4 C -=head4 C +=head4 C +=head4 C =head3 Retrieving Settings -=head4 C +=head4 C -=head4 C +=head4 C -=head4 C +=head4 C -=head4 C +=head4 C -=head4 C +=head4 C -=head4 C +=head4 C =head3 Modifying Settings -Set value for setting. - B signal afterwards.> -- cgit v1.2.3