diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2008-04-04 16:35:41 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2008-04-04 16:35:41 +0200 |
commit | bd417a19271d514b66e1abe1bd708634ba1b8400 (patch) | |
tree | 916fd579d5b41a2b6a27a6ea6d8350ad73ffe62a | |
parent | d24b73fdab7c4892c93e1f75a094b0f7ebaf97d3 (diff) |
new config variable: skypeout_offline for who liked the old behaviour
-rw-r--r-- | skype/skype.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/skype/skype.c b/skype/skype.c index 497d1590..0d5df057 100644 --- a/skype/skype.c +++ b/skype/skype.c @@ -322,7 +322,7 @@ static gboolean skype_read_callback( gpointer data, gint fd, b_input_condition c { ptr = g_strdup_printf("%s@skype.com", user); imcb_add_buddy(ic, ptr, NULL); - if(strcmp(status, "OFFLINE") != 0 && strcmp(status, "SKYPEOUT") != 0) + if(strcmp(status, "OFFLINE") && (strcmp(status, "SKYPEOUT") || !set_getbool(&ic->acc->set, "skypeout_offline"))) flags |= OPT_LOGGED_IN; if(strcmp(status, "ONLINE") != 0 && strcmp(status, "SKYPEME") != 0) flags |= OPT_AWAY; @@ -1253,6 +1253,8 @@ static void skype_init( account_t *acc ) s = set_add( &acc->set, "balance", NULL, skype_set_balance, acc ); s->flags |= ACC_SET_NOSAVE | ACC_SET_ONLINE_ONLY; + + s = set_add( &acc->set, "skypeout_offline", "true", set_eval_bool, acc ); } void init_plugin(void) |