aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--protocols/jabber/presence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/jabber/presence.c b/protocols/jabber/presence.c
index c8664a24..14060148 100644
--- a/protocols/jabber/presence.c
+++ b/protocols/jabber/presence.c
@@ -185,7 +185,7 @@ static char *choose_priority(struct im_connection *ic)
struct jabber_data *jd = ic->proto_data;
char *prio = set_getstr(&ic->acc->set, "priority");
- if (jd->away_state->code != NULL) {
+ if (jd->away_state && jd->away_state->full_name != NULL) {
int new_prio = (atoi(prio) - 5);
if (new_prio < 0) {
new_prio = 0;