Changeset 4b740c2


Ignore:
Timestamp:
2010-03-17T18:04:54Z (9 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
a73d6b2
Parents:
d0169e7
git-author:
Wilmer van der Gaast <wilmer@…> (17-03-10 18:04:54)
git-committer:
Miklos Vajna <vmiklos@…> (17-03-10 18:04:54)
Message:

BitlBee 1.2.5 compatibility patch

Heya,

Just to make sure people don't get screwed by BitlBee 1.2.5, here's a
diff to make stuff work smoothly.

I think without this patch they'll see crashes, sorry about that. :-(

Running the plugin on my desktop now. I'd test it but I have absolutely
no friends on Skype apparently. But the debugging console looks like
setting away states works:

/away busy
2010-03-17 14:43:55: >> SET USERSTATUS DND
2010-03-17 14:43:55: << USERSTATUS DND
2010-03-17 14:43:56: << USER lintux ONLINESTATUS DND
2010-03-17 14:43:56: << USERSTATUS DND
/away something
2010-03-17 14:43:59: >> SET USERSTATUS AWAY
2010-03-17 14:43:59: << USERSTATUS AWAY
2010-03-17 14:44:00: << USER lintux ONLINESTATUS AWAY
2010-03-17 14:44:00: << USERSTATUS AWAY
/away
2010-03-17 14:44:01: >> SET USERSTATUS ONLINE
2010-03-17 14:44:01: << USERSTATUS ONLINE
2010-03-17 14:44:04: << USER lintux ONLINESTATUS ONLINE
2010-03-17 14:44:04: << USERSTATUS ONLINE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skype/skype.c

    rd0169e7 r4b740c2  
    126126
    127127const struct skype_away_state skype_away_state_list[] = {
    128         { "ONLINE", "Online" },
    129         { "SKYPEME", "Skype Me" },
    130128        { "AWAY", "Away" },
    131129        { "NA", "Not available" },
     
    133131        { "INVISIBLE", "Invisible" },
    134132        { "OFFLINE", "Offline" },
     133        { "SKYPEME", "Skype Me" },
     134        { "ONLINE", "Online" },
    135135        { NULL, NULL}
    136136};
     
    10161016        const struct skype_away_state *state;
    10171017
    1018         if (strcmp(state_txt, GAIM_AWAY_CUSTOM) == 0)
    1019                 state = skype_away_state_by_name("Away");
     1018        if (state_txt == NULL)
     1019                state = skype_away_state_by_name("Online");
    10201020        else
    10211021                state = skype_away_state_by_name(state_txt);
Note: See TracChangeset for help on using the changeset viewer.