diff options
| -rw-r--r-- | doc/user-guide/commands.xml | 1 | ||||
| -rw-r--r-- | protocols/twitter/twitter.c | 9 | 
2 files changed, 10 insertions, 0 deletions
diff --git a/doc/user-guide/commands.xml b/doc/user-guide/commands.xml index 682c5dc1..6ce19774 100644 --- a/doc/user-guide/commands.xml +++ b/doc/user-guide/commands.xml @@ -846,6 +846,7 @@  				<varlistentry><term>undo #[<id>]</term><listitem><para>Delete your last Tweet (or one with the given ID)</para></listitem></varlistentry>  				<varlistentry><term>rt <screenname|#id></term><listitem><para>Retweet someone's last Tweet (or one with the given ID)</para></listitem></varlistentry>  				<varlistentry><term>reply <screenname|#id></term><listitem><para>Reply to a Tweet (with a reply-to reference)</para></listitem></varlistentry> +				<varlistentry><term>rawreply <screenname|#id></term><listitem><para>Reply to a Tweet (with no reply-to reference)</para></listitem></varlistentry>  				<varlistentry><term>report <screenname|#id></term><listitem><para>Report the given user (or the user who posted the tweet with the given ID) for sending spam. This will also block them.</para></listitem></varlistentry>  				<varlistentry><term>follow <screenname></term><listitem><para>Start following a person</para></listitem></varlistentry>  				<varlistentry><term>unfollow <screenname></term><listitem><para>Stop following a person</para></listitem></varlistentry> diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index edc81427..eb30187f 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -931,6 +931,15 @@ static void twitter_handle_command(struct im_connection *ic, char *message)  		message = new = g_strdup_printf("@%s %s", bu->handle, cmd[2]);  		in_reply_to = id;  		allow_post = TRUE; +	} else if (g_strcasecmp(cmd[0], "rawreply") == 0 && cmd[1] && cmd[2]) { +		id = twitter_message_id_from_command_arg(ic, cmd[1], NULL); +		if (!id) { +			twitter_log(ic, "Tweet `%s' does not exist", cmd[1]); +			goto eof; +		} +		message = cmd[2]; +		in_reply_to = id; +		allow_post = TRUE;  	} else if (g_strcasecmp(cmd[0], "post") == 0) {  		message += 5;  		allow_post = TRUE;  | 
