Changeset b82ba4a


Ignore:
Timestamp:
2022-06-22T19:19:34Z (3 years ago)
Author:
dx <dx@…>
Branches:
master
Children:
da0202a
Parents:
2e5f594
git-author:
Shane Synan <digitalcircuit36939@…> (28-03-22 20:30:22)
git-committer:
dx <dx@…> (22-06-22 19:19:34)
Message:

nogaim: Match case in imc_away_state_find()

Match the provided away-state case when searching for an alias, better
matching expectations.

For example, bitlbee-discord provides this:

m = g_list_prepend(m, "invisible");
m = g_list_prepend(m, "dnd");
m = g_list_prepend(m, "online");
m = g_list_prepend(m, "idle");

/away DND - some reason
...gives "dnd", which matches what was given to Bitlbee.

/away Busy - some reason
...gives "DND", which does NOT match what was given to Bitlbee. The
capitalization is derived from using Bitlbee's built-in alias list.

Technically this is a breaking behavior change to Bitlbee's plugin
API, even if this behavior may make more sense.

See https://github.com/sm00th/bitlbee-discord/pull/230#issuecomment-1005468508

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    r2e5f594 rb82ba4a  
    837837                                        }
    838838
    839                                         return imc_away_alias_list[i][j];
     839                                        return m->data;
    840840                                }
    841841                        }
Note: See TracChangeset for help on using the changeset viewer.