Modify

Ticket #82 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

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:1 Changed 3 years ago by timy_01

  • Owner changed from thaeron to timy_01

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 ?

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).

comment:3 Changed 3 years ago by timy_01

  • Status changed from new to assigned

Ok, c'est codé dans le r240.

Si le premier argument de la commande topic est un + le topic est ajouté au topic existant dans tous les autres cas il le remplace.

comment:4 Changed 3 years ago by thaeron

  • Status changed from assigned to closed
  • Resolution set to fixed

Code vérifié, corrigé et testé, il est dans le trunk [243]

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.