Changeset 269580c for protocols/twitter


Ignore:
Timestamp:
2014-07-24T03:51:07Z (10 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
59e66ff
Parents:
1783ab6
Message:

Add limit param to split_command_parts(), fix twitter quotes bug

Only took me a few months to write. I even added a test case.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    r1783ab6 r269580c  
    602602
    603603        cmds = g_strdup(message);
    604         cmd = split_command_parts(cmds);
     604        cmd = split_command_parts(cmds, 2);
    605605
    606606        if (cmd[0] == NULL) {
     
    662662                        goto eof;
    663663                }
    664                 message = new = g_strdup_printf("@%s %s", bu->handle, message + (cmd[2] - cmd[0]));
     664                message = new = g_strdup_printf("@%s %s", bu->handle, cmd[2]);
    665665                in_reply_to = id;
    666666                allow_post = TRUE;
Note: See TracChangeset for help on using the changeset viewer.