Changeset ff468a7


Ignore:
Timestamp:
2016-09-28T03:56:39Z (8 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
82e55d2
Parents:
1a8875f
Message:

Fix crash when setting away in protocols with null away_states list

Like funyahoo++, which has online and offline statuses, but bitlbee's
purple filters those out, resulting in an empty list, and boom.

It's ugly enough that I think I'll add a workaround to the plugin too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    r1a8875f rff468a7  
    712712        if (away && *away) {
    713713                GList *m = ic->acc->prpl->away_states(ic);
     714                if (m == NULL) {
     715                        return 0;
     716                }
    714717                msg = ic->acc->flags & ACC_FLAG_AWAY_MESSAGE ? away : NULL;
    715718                away = imc_away_state_find(m, away, &msg) ? :
Note: See TracChangeset for help on using the changeset viewer.