diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-17 19:04:54 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2010-03-17 19:04:54 +0100 |
commit | 4b740c2ddf34c7b4390b5e44496ac19724343ccd (patch) | |
tree | 768542bf7d00f5e65d8aca0202d507ed26fe726a | |
parent | d0169e78bb0d14086f8648d3aa65968a86762c9b (diff) |
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
-rw-r--r-- | skype/skype.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/skype/skype.c b/skype/skype.c index 9e8468c5..e67ea2b7 100644 --- a/skype/skype.c +++ b/skype/skype.c @@ -125,13 +125,13 @@ struct skype_buddy_ask_data { */ const struct skype_away_state skype_away_state_list[] = { - { "ONLINE", "Online" }, - { "SKYPEME", "Skype Me" }, { "AWAY", "Away" }, { "NA", "Not available" }, { "DND", "Do Not Disturb" }, { "INVISIBLE", "Invisible" }, { "OFFLINE", "Offline" }, + { "SKYPEME", "Skype Me" }, + { "ONLINE", "Online" }, { NULL, NULL} }; @@ -1015,8 +1015,8 @@ static void skype_set_away(struct im_connection *ic, char *state_txt, { const struct skype_away_state *state; - if (strcmp(state_txt, GAIM_AWAY_CUSTOM) == 0) - state = skype_away_state_by_name("Away"); + if (state_txt == NULL) + state = skype_away_state_by_name("Online"); else state = skype_away_state_by_name(state_txt); skype_printf(ic, "SET USERSTATUS %s\n", state->code); |