aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/twitter/twitter.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2014-07-24 00:51:07 -0300
committerdequis <dx@dxzone.com.ar>2014-07-24 00:51:07 -0300
commit269580c6302a677e07176494bd314c7e2a8f488f (patch)
tree393145104686ce5468d558c29a451a19677bf91d /protocols/twitter/twitter.c
parent1783ab6964c9a8ffc3488bb5243f0b15858f4e74 (diff)
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.
Diffstat (limited to 'protocols/twitter/twitter.c')
-rw-r--r--protocols/twitter/twitter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c
index 70e11067..5aefc008 100644
--- a/protocols/twitter/twitter.c
+++ b/protocols/twitter/twitter.c
@@ -601,7 +601,7 @@ static void twitter_handle_command(struct im_connection *ic, char *message)
bee_user_t *bu = NULL;
cmds = g_strdup(message);
- cmd = split_command_parts(cmds);
+ cmd = split_command_parts(cmds, 2);
if (cmd[0] == NULL) {
goto eof;
@@ -661,7 +661,7 @@ static void twitter_handle_command(struct im_connection *ic, char *message)
"post any statuses recently", cmd[1]);
goto eof;
}
- message = new = g_strdup_printf("@%s %s", bu->handle, message + (cmd[2] - cmd[0]));
+ message = new = g_strdup_printf("@%s %s", bu->handle, cmd[2]);
in_reply_to = id;
allow_post = TRUE;
} else if (g_strcasecmp(cmd[0], "post") == 0) {