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

Diff of /weechat/doc/weechat_doc_fr.texi

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

revision 1.26 by flashcode, Sat May 21 07:04:11 2005 UTC revision 1.27 by kolter, Sun Jun 5 12:54:31 2005 UTC
# Line 1444  Lister les scripts Python charg@'es : @k Line 1444  Lister les scripts Python charg@'es : @k
1444    
1445  @itemize @bullet  @itemize @bullet
1446  @item  @item
1447  @command{weechat.register ( nom, version, fonction_de_fin, description );}@*  @command{weechat.register ( nom, version, fonction_de_fin, description )}@*
1448  @*  @*
1449  C'est la premi@`ere fonction @`a appeler dans le script Python.@*  C'est la premi@`ere fonction @`a appeler dans le script Python.@*
1450  Tout script Python pour WeeChat doit appeler cette fonction.@*  Tout script Python pour WeeChat doit appeler cette fonction.@*
# Line 1461  de fonction @`a appeler) Line 1461  de fonction @`a appeler)
1461  @end itemize  @end itemize
1462  @*  @*
1463  @emph{Exemple :}@*  @emph{Exemple :}@*
1464  @code{weechat.register ("essai", "1.0", "fin_essai", "Script d'essai !");}@*  @code{weechat.register ("essai", "1.0", "fin_essai", "Script d'essai !")}@*
1465  @*  @*
1466    
1467  @item  @item
1468  @command{weechat.prnt ( message, [canal, [serveur]] );}@*  @command{weechat.prnt ( message, [canal, [serveur]] )}@*
1469  @*  @*
1470  Affiche un message dans un canal.@*  Affiche un message dans un canal.@*
1471    
# Line 1477  Affiche un message dans un canal.@* Line 1477  Affiche un message dans un canal.@*
1477  @end itemize  @end itemize
1478  @*  @*
1479  @emph{Exemple :}@*  @emph{Exemple :}@*
1480  @code{weechat.prnt ("message");}@*  @code{weechat.prnt ("message")}@*
1481  @code{weechat.prnt ("message", "#weechat");}@*  @code{weechat.prnt ("message", "#weechat")}@*
1482  @code{weechat.prnt ("message", "#weechat", "freenode");}@*  @code{weechat.prnt ("message", "#weechat", "freenode")}@*
1483  @*  @*
1484    
1485  @item  @item
1486  @command{weechat.print_infobar ( d@'elai, message );}@*  @command{weechat.print_infobar ( d@'elai, message )}@*
1487  @*  @*
1488  Affiche un message dans la barre d'infos.@*  Affiche un message dans la barre d'infos.@*
1489    
# Line 1495  Affiche un message dans la barre d'infos Line 1495  Affiche un message dans la barre d'infos
1495  @end itemize  @end itemize
1496  @*  @*
1497  @emph{Exemple :}@*  @emph{Exemple :}@*
1498  @code{weechat.print_infobar (5, "message");}@*  @code{weechat.print_infobar (5, "message")}@*
1499  @*  @*
1500    
1501  @item  @item
1502  @command{weechat.add_message_handler ( nom, fonction );}@*  @command{weechat.add_message_handler ( nom, fonction )}@*
1503  @*  @*
1504  Attache une fonction Python @`a un message IRC particulier.@*  Attache une fonction Python @`a un message IRC particulier.@*
1505  La fonction sera appel@'ee @`a chaque fois que le message IRC sera re@,{c}u.@*  La fonction sera appel@'ee @`a chaque fois que le message IRC sera re@,{c}u.@*
# Line 1515  RFC 2812 : @uref{ftp://ftp.rfc-editor.or Line 1515  RFC 2812 : @uref{ftp://ftp.rfc-editor.or
1515  @end itemize  @end itemize
1516  @*  @*
1517  @emph{Exemple :}@*  @emph{Exemple :}@*
1518  @code{weechat.add_message_handler ("privmsg", ma_fonction);}@*  @code{weechat.add_message_handler ("privmsg", ma_fonction)}@*
1519  @code{sub ma_fonction}@*  @code{def ma_fonction(serveur, args):}@*
1520  @code{@{ }@*  @code{@ @ @ @ weechat.prnt("serveur="+serveur)}@*
1521  @code{@ @ @ @ weechat.prnt ("serveur=$_[0]\n");}@*  @code{@ @ @ @ null, canal, message = string.split(args, ":", 2)}@*
1522  @code{@ @ @ @ ($null, $canal, $message) = split ":",$_[1],3;}@*  @code{@ @ @ @ masque, null, canal = string.split(string.strip(canal), " ", 2)}@*
1523  @code{@ @ @ @ ($masque, $null, $canal) = split " ", $canal;}@*  @code{@ @ @ @ weechat.prnt("masque="+masque+", canal="+canal+", message="+message)}@*
 @code{@ @ @ @ weechat.prnt ("masque=$masque, canal=$canal, message=$message\n");}@*  
 @code{@} }@*  
1524  @*  @*
1525    
1526  @item  @item
1527  @command{weechat.add_command_handler ( nom, fonction );}@*  @command{weechat.add_command_handler ( nom, fonction )}@*
1528  @*  @*
1529  Cr@'e@'e une nouvelle commande WeeChat, associ@'ee @`a une fonction Python.@*  Cr@'e@'e une nouvelle commande WeeChat, associ@'ee @`a une fonction Python.@*
1530  La fonction sera appel@'ee lorsque l'utilisateur lancera la commande par @kbd{/nom}.@*  La fonction sera appel@'ee lorsque l'utilisateur lancera la commande par @kbd{/nom}.@*
# Line 1541  ne seront plus accessibles tant que le s Line 1539  ne seront plus accessibles tant que le s
1539  @end itemize  @end itemize
1540  @*  @*
1541  @emph{Exemple :}@*  @emph{Exemple :}@*
1542  @code{weechat.add_command_handler ("commande", ma_commande);}@*  @code{weechat.add_command_handler ("commande", ma_commande)}@*
1543  @code{sub ma_commande}@*  @code{def ma_commande(serveur, args):}@*
1544  @code{@{ }@*  @code{@ @ @ @ weechat.prnt("serveur:"+serveur+" param@`etres:"+args)}@*
 @code{@ @ @ @ weechat.prnt("Serveur: $_[0], param@`etres: $_[1]\n");}@*  
 @code{@ @ @ @ return 0;}@*  
 @code{@} }@*  
1545  @*  @*
1546    
1547  @item  @item
1548  @command{weechat.command ( commande, [canal, [serveur]] );}@*  @command{weechat.command ( commande, [canal, [serveur]] )}@*
1549  @*  @*
1550  Ex@'ecute une commande ou envoie un message @'a un canal.@*  Ex@'ecute une commande ou envoie un message @'a un canal.@*
1551    
# Line 1562  Ex@'ecute une commande ou envoie un mess Line 1557  Ex@'ecute une commande ou envoie un mess
1557  @end itemize  @end itemize
1558  @*  @*
1559  @emph{Exemples :}@*  @emph{Exemples :}@*
1560  @code{weechat.command ("bonjour tout le monde !");}@*  @code{weechat.command ("bonjour tout le monde !")}@*
1561  @code{weechat.command ("/kick toto merci de quitter ce canal", "#weechat");}@*  @code{weechat.command ("/kick toto merci de quitter ce canal", "#weechat")}@*
1562  @code{weechat.command ("/nick newnick", "", "freenode");}@*  @code{weechat.command ("/nick newnick", "", "freenode")}@*
1563  @*  @*
1564    
1565  @item  @item
1566  @command{weechat.get_info ( nom, [serveur] );}@*  @command{weechat.get_info ( nom, [serveur] )}@*
1567  @*  @*
1568  Obtenir des informations vari@'ees sur WeeChat, le serveur ou l'utilisateur.@*  Obtenir des informations vari@'ees sur WeeChat, le serveur ou l'utilisateur.@*
1569    
# Line 1587  Obtenir des informations vari@'ees sur W Line 1582  Obtenir des informations vari@'ees sur W
1582  @end itemize  @end itemize
1583  @*  @*
1584  @emph{Exemples :}@*  @emph{Exemples :}@*
1585  @code{$version = weechat.get_info("version");}@*  @code{$version = weechat.get_info("version")}@*
1586  @code{$nick = weechat.get_info("nick", "freenode");}@*  @code{$nick = weechat.get_info("nick", "freenode")}@*
1587  @*  @*
1588    
1589  @end itemize  @end itemize

Legend:
Removed from v.1.26  
changed lines
  Added in v.1.27

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