diff options
author | VMiklos <vmiklos@frugalware.org> | 2007-09-04 00:30:15 +0200 |
---|---|---|
committer | VMiklos <vmiklos@frugalware.org> | 2007-09-04 00:30:15 +0200 |
commit | 5d1b077428f1586d9de15cb37e26b65b7ff6b2c0 (patch) | |
tree | 93512b593369c7239b78718e6e8907356e29cce7 | |
parent | dab0f8ad3de7ebd043a6a6316591988017952eba (diff) |
support for edited messages
-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; |