patchWeeChat - Patches: patch #7974, Provide uniform infolists for...

 
 

patch #7974: Provide uniform infolists for signal callbacks and infolist hook

Submitted by:  Andrew Potter <talisein>
Submitted on:  Sun Mar 17 21:10:28 2013  
 
Category: xfer pluginPriority: 5 - Normal
Status: DonePrivacy: Public
Assigned to: Sebastien Helleu <flashcode>Open/Closed: Closed
IRC nick: talisein

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon Jan 6 15:01:47 2014, comment #2:

Committed.

And I added similar thing for "protocol" vs "protocol_string", for consistency between infolists.

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
Tue Apr 2 21:25:37 2013, comment #1:

The previous patch changes a couple fields type, such as type becoming type_string. I audited everything in weechat that uses xfer signals (its just irc-server.c). I also grepped all the scripts and none of them use xfer signals.

The attached patch adds the only change needed to keep everything working.

(file #27750)

Andrew Potter <talisein>
Sun Mar 17 21:10:28 2013, original submission:

xfer callbacks provide a very limited subset of infolist information compared to what is returned from weechat_infolist_get("xfer", ...).

In my case I was interested in the local_filename and status fields on the xfer_ended signal.

The attached patch gives signal callbacks the same infolist that infolist_get("xfer", ...) would return, except only for the single xfer that produced the signal.

Andrew Potter <talisein>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by flashcode (Posted a comment)
  • -unavailable- added by talisein (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Feb 9 09:53:56 2014flashcodeOpen/ClosedOpen=>Closed
    Mon Jan 6 15:01:47 2014flashcodeStatusNone=>Done
      Assigned toNone=>flashcode
    Tue Apr 2 21:25:37 2013taliseinAttached File-=>Added 0001-xfer-Provide-uniform-infolists-for-signal-callbacks-.patch, #27750
    Sun Mar 17 22:44:35 2013taliseinAttached File-=>Added 0001-xfer-Provide-uniform-infolists-for-signal-callbacks-.patch, #27622
    Sun Mar 17 21:10:28 2013taliseinAttached File-=>Added 0001-xfer-Provide-uniform-infolists-for-signal-callbacks-.patch, #27621

    Back to the top


    Powered by Savane 3.1-cleanup