diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-07 22:38:56 +0100 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-07 22:38:56 +0100 |
commit | 91cec2ff02f956ec248dae6c8b8939f263ff8cfd (patch) | |
tree | 62d2c4c9e714ee1bee97f4b59f48b4af673ca48d /protocols/nogaim.c | |
parent | 123cac724c5907365e0c4bd939806cc240e764f0 (diff) |
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.
Diffstat (limited to 'protocols/nogaim.c')
-rw-r--r-- | protocols/nogaim.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/nogaim.c b/protocols/nogaim.c index 0c2094e2..53e459b5 100644 --- a/protocols/nogaim.c +++ b/protocols/nogaim.c @@ -1207,6 +1207,10 @@ int imc_away_send_update( struct im_connection *ic ) { char *away, *msg = NULL; + if( ic->acc->prpl->away_states == NULL || + ic->acc->prpl->set_away == NULL ) + return 0; + away = set_getstr( &ic->acc->set, "away" ) ? : set_getstr( &ic->irc->set, "away" ); if( away && *away ) |