aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/nogaim.c
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/nogaim.c')
-rw-r--r--protocols/nogaim.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/nogaim.c b/protocols/nogaim.c
index 21152e0f..a5eda2e0 100644
--- a/protocols/nogaim.c
+++ b/protocols/nogaim.c
@@ -621,7 +621,8 @@ int imc_away_send_update(struct im_connection *ic)
if (away && *away) {
GList *m = ic->acc->prpl->away_states(ic);
msg = ic->acc->flags & ACC_FLAG_AWAY_MESSAGE ? away : NULL;
- away = imc_away_state_find(m, away, &msg) ? : m->data;
+ away = imc_away_state_find(m, away, &msg) ? :
+ (imc_away_state_find(m, "away", &msg) ? : m->data);
} else if (ic->acc->flags & ACC_FLAG_STATUS_MESSAGE) {
away = NULL;
msg = set_getstr(&ic->acc->set, "status") ?