Changes in protocols/twitter/twitter.c [a685409:c203533]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/twitter/twitter.c
ra685409 rc203533 323 323 s = set_add(&acc->set, "show_ids", "true", set_eval_bool, acc); 324 324 325 s = set_add(&acc->set, "show_old_mentions", " 20", set_eval_int, acc);325 s = set_add(&acc->set, "show_old_mentions", "0", set_eval_int, acc); 326 326 327 327 s = set_add(&acc->set, "strip_newlines", "false", set_eval_bool, acc); … … 602 602 603 603 cmds = g_strdup(message); 604 cmd = split_command_parts(cmds );604 cmd = split_command_parts(cmds, 2); 605 605 606 606 if (cmd[0] == NULL) { … … 617 617 618 618 goto eof; 619 } else if (g_strcasecmp(cmd[0], "favourite") == 0 && cmd[1]) { 619 } else if ((g_strcasecmp(cmd[0], "favourite") == 0 || 620 g_strcasecmp(cmd[0], "favorite") == 0 || 621 g_strcasecmp(cmd[0], "fav") == 0) && cmd[1]) { 620 622 if ((id = twitter_message_id_from_command_arg(ic, cmd[1], NULL))) { 621 623 twitter_favourite_tweet(ic, id); … … 662 664 goto eof; 663 665 } 664 message = new = g_strdup_printf("@%s %s", bu->handle, message + (cmd[2] - cmd[0]));666 message = new = g_strdup_printf("@%s %s", bu->handle, cmd[2]); 665 667 in_reply_to = id; 666 668 allow_post = TRUE;
Note: See TracChangeset
for help on using the changeset viewer.