aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--protocols/nogaim.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/nogaim.c b/protocols/nogaim.c
index ab11508b..d6d2e8e3 100644
--- a/protocols/nogaim.c
+++ b/protocols/nogaim.c
@@ -711,6 +711,9 @@ int imc_away_send_update(struct im_connection *ic)
: set_getstr(&ic->bee->set, "away");
if (away && *away) {
GList *m = ic->acc->prpl->away_states(ic);
+ if (m == NULL) {
+ return 0;
+ }
msg = ic->acc->flags & ACC_FLAG_AWAY_MESSAGE ? away : NULL;
away = imc_away_state_find(m, away, &msg) ? :
(imc_away_state_find(m, "away", &msg) ? : m->data);