1. Mikael Berthe
  2. mcabber-crew
  3. Issues
Issue #22 resolved

Pathc for add two commands "/esay" "/esay_to" "/browse edit"

Anonymous created an issue

This patch add commands: "/esay", "/esay_to" and "/browse edit: for message editing in external editor.

Comments (17)

  1. Anonymous

    It is not working with the last mcabber-crew

    commands.c: In function 'do_external_say':
    commands.c:1370: warning: implicit declaration of function 'open'
    commands.c:1370: error: 'O_CREAT' undeclared (first use in this function)
    commands.c:1370: error: (Each undeclared identifier is reported only once
    commands.c:1370: error: for each function it appears in.)
    commands.c:1370: error: 'O_RDWR' undeclared (first use in this function)
    commands.c:1373: error: 'errno' undeclared (first use in this function)
    
  2. Anonymous

    Works nicely for me, Thanks.

    Is there a better way to do this ?

    I figure when the currently selected buddy and the location of the fifo is known a command could just fork away and mcabber could resume. Both pieces of information could be passed as commandline arguments or environment variables.

    cheers Andreas

  3. Mikael Berthe repo owner

    I can't think of a better way, unfortunately.

    Maybe, if you use screen, there could be a way to open up the editor in another screen window and send the file through the FIFO pipe. All we'd have to do is to find out how to tell screen to run a script in a new window - maybe it can be done using a FIFO as well?

  4. Log in to comment