Changeset 91cec2f


Ignore:
Timestamp:
2010-04-07T21:38:56Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
2e3a857
Parents:
123cac7
Message:

It'd be nice to not crash when the user goes away. :-)

Don't export no-op set_away() funcs/etc and make nogaim detect that and
give up in time.

Location:
protocols
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    r123cac7 r91cec2f  
    12081208        char *away, *msg = NULL;
    12091209       
     1210        if( ic->acc->prpl->away_states == NULL ||
     1211            ic->acc->prpl->set_away == NULL )
     1212                return 0;
     1213       
    12101214        away = set_getstr( &ic->acc->set, "away" ) ?
    12111215             : set_getstr( &ic->irc->set, "away" );
  • protocols/twitter/twitter.c

    r123cac7 r91cec2f  
    127127 *
    128128 */
    129 static GList *twitter_away_states( struct im_connection *ic )
    130 {
    131         static GList *l = NULL;
    132         return l;
    133 }
    134 
    135 static void twitter_set_away( struct im_connection *ic, char *state, char *message )
    136 {
    137 }
    138 
    139129static void twitter_set_my_name( struct im_connection *ic, char *info )
    140130{
     
    211201        ret->logout = twitter_logout;
    212202        ret->buddy_msg = twitter_buddy_msg;
    213         ret->away_states = twitter_away_states;
    214         ret->set_away = twitter_set_away;
    215203        ret->get_info = twitter_get_info;
    216204        ret->set_my_name = twitter_set_my_name;
Note: See TracChangeset for help on using the changeset viewer.