Ignore:
Timestamp:
2010-09-30T05:28:36Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
05bf2a0
Parents:
ecae65f
Message:

Some simple error msgs on failed Twitter commands (undo and rt).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    recae65f r665c24f  
    2929#include "url.h"
    3030
     31#define twitter_msg( ic, fmt... ) \
     32        do {                                                        \
     33                struct twitter_data *td = ic->proto_data;           \
     34                if( td->home_timeline_gc )                          \
     35                        imcb_chat_log( td->home_timeline_gc, fmt ); \
     36                else                                                \
     37                        imcb_log( ic, fmt );                        \
     38        } while( 0 );
     39               
     40
    3141/**
    3242 * Main loop function
     
    436446                if( id )
    437447                        twitter_status_destroy( ic, id );
     448                else
     449                        twitter_msg( ic, "Could not undo last action" );
    438450               
    439451                g_free( cmds );
     
    467479                if( id )
    468480                        twitter_status_retweet( ic, id );
     481                else
     482                        twitter_msg( ic, "User `%s' does not exist or didn't "
     483                                         "post any statuses recently", cmd[1] );
    469484               
    470485                g_free( cmds );
Note: See TracChangeset for help on using the changeset viewer.