aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/twitter/twitter.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-10-02 19:45:26 -0700
committerWilmer van der Gaast <wilmer@gaast.net>2010-10-02 19:45:26 -0700
commit8e9e2b7d9e54744cee32b3724391bf0ad04e8aff (patch)
tree6cafdc57bb8143306daf8ef8288d09754f39b451 /protocols/twitter/twitter.c
parent88de0c96136313e553113f69cfc6ae544a5f5954 (diff)
parent2af3e232ff468b288dd4e0dbdab1a17312d801c5 (diff)
Merging mainline, which includes a huge msnp13 merge.
Not 100% sure about the OpenSSL merge, should double check that but I'm currently offline.
Diffstat (limited to 'protocols/twitter/twitter.c')
-rw-r--r--protocols/twitter/twitter.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c
index 1bc596eb..4ece97db 100644
--- a/protocols/twitter/twitter.c
+++ b/protocols/twitter/twitter.c
@@ -28,6 +28,16 @@
#include "twitter_lib.h"
#include "url.h"
+#define twitter_msg( ic, fmt... ) \
+ do { \
+ struct twitter_data *td = ic->proto_data; \
+ if( td->home_timeline_gc ) \
+ imcb_chat_log( td->home_timeline_gc, fmt ); \
+ else \
+ imcb_log( ic, fmt ); \
+ } while( 0 );
+
+
/**
* Main loop function
*/
@@ -435,6 +445,8 @@ static void twitter_handle_command( struct im_connection *ic, char *message )
/* TODO: User feedback. */
if( id )
twitter_status_destroy( ic, id );
+ else
+ twitter_msg( ic, "Could not undo last action" );
g_free( cmds );
return;
@@ -466,6 +478,9 @@ static void twitter_handle_command( struct im_connection *ic, char *message )
td->last_status_id = 0;
if( id )
twitter_status_retweet( ic, id );
+ else
+ twitter_msg( ic, "User `%s' does not exist or didn't "
+ "post any statuses recently", cmd[1] );
g_free( cmds );
return;