/[weechat]/weechat/doc/weechat_doc_en.texi
ViewVC logotype

Diff of /weechat/doc/weechat_doc_en.texi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by flashcode, Sun Nov 23 13:15:27 2003 UTC revision 1.2 by flashcode, Sun Nov 23 17:29:18 2003 UTC
# Line 298  NOT WRITTEN! Line 298  NOT WRITTEN!
298  Perl scripts are loaded and unloaded with @command{/perl} command.  Perl scripts are loaded and unloaded with @command{/perl} command.
299  (type @kbd{/help perl} within WeeChat to get help about command).@*  (type @kbd{/help perl} within WeeChat to get help about command).@*
300    
301    @emph{Examples:}@*
302  @itemize @bullet  @itemize @bullet
303  @item  @item
304  Perl script loading example:@*  Load a Perl script: @kbd{/perl load /tmp/sample.pl}@*
 @kbd{/perl load /tmp/sample.pl}@*  
305  @item  @item
306  Perl script unloading example:@*  Unload all Perl scripts: @kbd{/perl unload}@*
 @kbd{/perl unload sample}@*  
 Notice: "sample" is the first parameter of @command{IRC::register} function.@*  
307  @item  @item
308  List all Perl script loaded:@*  List all Perl scripts: @kbd{/perl}@*
 @kbd{/perl}@*  
309  @end itemize  @end itemize
310    
311  @subsection WeeChat / Perl API  @subsection WeeChat / Perl API
# Line 332  unloaded (optional parameter, empty stri Line 329  unloaded (optional parameter, empty stri
329  @*  @*
330  @emph{Example:}@*  @emph{Example:}@*
331  @code{IRC::register ("sample", "1.0", "sample_end", "Sample script!");}@*  @code{IRC::register ("sample", "1.0", "sample_end", "Sample script!");}@*
332    @*
333    
334  @item  @item
335  @command{IRC::print ( message );}@*  @command{IRC::print ( message );}@*
# Line 345  Print message in current window (channel Line 343  Print message in current window (channel
343  @*  @*
344  @emph{Example:}@*  @emph{Example:}@*
345  @code{IRC::print ("message");}@*  @code{IRC::print ("message");}@*
346    @*
347    
348  @item  @item
349  @command{IRC::add_message_handler ( name, function );}@*  @command{IRC::add_message_handler ( name, function );}@*
# Line 369  RFC 2812: @uref{ftp://ftp.rfc-editor.org Line 368  RFC 2812: @uref{ftp://ftp.rfc-editor.org
368  @code{@ @ @ @ ($hostmask, $null, $channel) = split " ", $channel;}@*  @code{@ @ @ @ ($hostmask, $null, $channel) = split " ", $channel;}@*
369  @code{@ @ @ @ IRC::print ("host=$hostmask, chan=$channel, msg=$message\n");}@*  @code{@ @ @ @ IRC::print ("host=$hostmask, chan=$channel, msg=$message\n");}@*
370  @code{@} }@*  @code{@} }@*
371    @*
372    
373  @item  @item
374  @command{IRC::add_command_handler ( name, function );}@*  @command{IRC::add_command_handler ( name, function );}@*
# Line 392  available until your Perl script will be Line 392  available until your Perl script will be
392  @code{@ @ @ @ IRC::print("Arguments: ".@@_[0]);}@*  @code{@ @ @ @ IRC::print("Arguments: ".@@_[0]);}@*
393  @code{@ @ @ @ return 0;}@*  @code{@ @ @ @ return 0;}@*
394  @code{@} }@*  @code{@} }@*
395    @*
396    
397  @end itemize  @end itemize
398    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26