diff options
-rw-r--r-- | skype/README | 2 | ||||
-rw-r--r-- | skype/skype.c | 11 |
2 files changed, 11 insertions, 2 deletions
diff --git a/skype/README b/skype/README index bb8db83f..0c21646b 100644 --- a/skype/README +++ b/skype/README @@ -157,8 +157,6 @@ allow the `SkypeApiPythonShell` client when Skype asks about it). - Group chat support. Sadly I'm not too motivated to implement this at the moment. -- Support for receiving edited messages. - - Add a question callback for calls. == I would like to have support for ... diff --git a/skype/skype.c b/skype/skype.c index 7dfd3a26..6aa7259d 100644 --- a/skype/skype.c +++ b/skype/skype.c @@ -263,6 +263,17 @@ static gboolean skype_read_callback( gpointer data, gint fd, b_input_condition c g_free(sd->handle); sd->handle = g_strdup_printf("%s@skype.com", info); } + else if(!strncmp(info, "EDITED_BY ", 10)) + { + info += 10; + /* This is the same as + * FROM_HANDLE, except that we + * never request these lines + * from Skype, we just get + * them. */ + g_free(sd->handle); + sd->handle = g_strdup_printf("%s@skype.com", info); + } else if(!strncmp(info, "BODY ", 5)) { info += 5; |