From 5bb0f2351ac398b8df5ebc81093539e2f593e30c Mon Sep 17 00:00:00 2001 From: Tom Feist Date: Thu, 22 Jul 2010 15:45:54 +0100 Subject: added messagelevel docs to irssi.pod, more stuff in guide, and a little script to dump .xs func definitions --- docs/Irssi.pod | 111 +++++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 88 insertions(+), 23 deletions(-) (limited to 'docs/Irssi.pod') diff --git a/docs/Irssi.pod b/docs/Irssi.pod index c02f852..85b36dd 100644 --- a/docs/Irssi.pod +++ b/docs/Irssi.pod @@ -83,6 +83,7 @@ For example: =head1 METHODS + =head2 Accessors =head3 C @@ -299,12 +300,14 @@ remainder of the string to be processed as desired. =head4 C -Run subcommands for `cmd'. First word in `data' is parsed as -subcommand. `server' is L record for current -L `item'. +Run subcommands for C<$cmd>. First word in C<$data> is parsed as +subcommand. C<$server> is L record for current +L C<$item>. + +Call command_runsub in handler function for C<$cmd> and bind +with: -Call command_runsub in handler function for `cmd' and bind -with command_bind("`cmd' `subcmd'", subcmdfunc[, category]); + command_bind("$cmd $subcmd", subcmdfunc[, category]); See the L for further details. @@ -436,7 +439,8 @@ A time type. B =item C -An irssi Messagelevel. See C for a full list and description. +An irssi Messagelevel. See C for a full list and description, or +L for a description of the Perl equivalents. =item C @@ -490,14 +494,15 @@ Remove a setting specified with C<$key>. =head3 C - Call C<$func> every C<$msecs> milliseconds (1/1000th of a second) with - parameter C<$data>. Returns a tag which can be used to stop the timeout via - L. +Call C<$func> every C<$msecs> milliseconds (1/1000th of a second) with +parameter C<$data>. Returns a tag which can be used to stop the timeout via +L. =head3 C -Call `func' once after `msecs' milliseconds (1000 = 1 second) -with parameter `data'. Returns tag which can be used to stop the timeout. +Call C<$func> once after C<$msecs> milliseconds (1000 = 1 second) with parameter +C<$data>. Returns tag which can be used to stop the timeout via +L. =head3 C @@ -505,43 +510,104 @@ Remove timeout specified with tag C<$tag>. =head3 C -Call `func' with parameter `data' when specified IO happens. -`source' is the file handle that is being listened. `condition' can -be INPUT_READ, INPUT_WRITE or both. Returns tag which can be used to -remove the listener. +Call C<$func> with parameter C<$data> when specified IO happens. C<$source> is +the file handle that is being listened. C<$condition> can be +C, C or both. Returns tag which can be +used to remove the listener with L. =head3 C -Remove listener with tag. +Remove listener with C<$tag>. =head3 C -Adds `pid' to the list of processes to wait for. The pid must identify +Adds C<$pid> to the list of processes to wait for. The pid must identify a child process of the irssi process. When the process terminates, a "pidwait" signal will be sent with the pid and the status from waitpid(). This is useful to avoid zombies if your script forks. =head3 C -Removes `pid' from the list of processes to wait for. Terminated +Removes C<$pid> from the list of processes to wait for. Terminated processes are removed automatically, so it is usually not necessary to call this function. =head2 Message Levels +The standard Irssi levels (as specified in C) are accessible from +within scripts with the following zero-arguments functions: + +=over + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=item C + +=back + =head3 C - Level string -> number +Level string -> number =head3 C - Level number -> string +Level number -> string =head3 C - Combine level number to level string ("+level -level"). - Return new level number. +Combine level number to level string (C<"+level -level">). +Return new level number. =head2 Themes @@ -611,7 +677,6 @@ Update ignore record in configuration B - =head2 Logging =head3 C -- cgit v1.2.3