aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--skype/README3
-rw-r--r--skype/skype.c5
2 files changed, 5 insertions, 3 deletions
diff --git a/skype/README b/skype/README
index 1fd5ad64..e5f9bf32 100644
--- a/skype/README
+++ b/skype/README
@@ -317,9 +317,6 @@ $ skyped -n -d
build `bitlbee-skype` only for a public server or only for use with a public
server.
-- Add some keep-alive traffic so that bitlbee won't disconnect from
- skyped when nothing happens for a long time.
-
== I would like to have support for ...
If something does not work and it's not in the TODO section, then please
diff --git a/skype/skype.c b/skype/skype.c
index 7c46db33..470c1035 100644
--- a/skype/skype.c
+++ b/skype/skype.c
@@ -879,6 +879,11 @@ static gboolean skype_read_callback( gpointer data, gint fd, b_input_condition c
{
imcb_log(ic, "SkypeOut balance value is '%s'.", line+21);
}
+ else if(!strncmp(line, "PING", 4))
+ {
+ g_snprintf(buf, 1024, "PONG\n");
+ skype_write(ic, buf, strlen(buf));
+ }
lineptr++;
}
g_strfreev(lines);