Modify ↓
Ticket #82 (closed enhancement: fixed)
topic : pouvoir ajouter à la fin
| Reported by: | thaeron | Owned by: | timy_01 |
|---|---|---|---|
| Priority: | minor | Milestone: | Version 1.7 |
| Component: | modules | Version: | |
| Keywords: | Cc: |
Description
Sur l'idée de DbD : faire une commande, par exemple .topic+, qui permettrait d'ajouter à la fin du topic existant.
Attachments
Change History
comment:2 Changed 3 years ago by thaeron
Effectivement il faudrait faire la commande TOPIC ensuite le serveur va renvoyer le topic comme ça :
<< TOPIC #programmation >> :irc.lea.idapnet.org 332 Thaeron #programmation :Bonne année 0x7b2+time(NULL)/0x1e187e0. Codito ergo sum. UTF-8 obligatoire ! NO C/C > http://www.sagwin.org/NoPasting/ Quotes: http://syndrome.sagwin.org/quotes.php Urls: http://syndrome.sagwin.org/urls.php
Donc il faut faire un bot_send_rawf(), puis bot_add_type_handler() sur 332 et tu peux utiliser bot_set_handler_data() pour que le callback puisse disposer des infos (channels, chaine à ajouter).
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](http://cryptofractalx.ath.cx/imgs/ns-logo-complet.png)
Comment je peux récupérer le topic actuel depuis un module du bot ? il faut que je demande le topic du channel et que je rajoute un bot_add_handler_data sur le retour ?