diff options
author | Eion Robb <eion@robbmob.com> | 2009-12-10 22:24:56 +0300 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2009-12-10 22:24:56 +0300 |
commit | 181c911a27e5eee6a15a6f9a64999d145830422b (patch) | |
tree | 117e36ceaadfe191d4c9790c48cb4c04b3156e36 | |
parent | cf8e37d050b2fc918f68c8a6d0c46d7e1a471d6c (diff) |
More xml parsing
-rw-r--r-- | skype_events.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/skype_events.c b/skype_events.c index 921c452..3262f46 100644 --- a/skype_events.c +++ b/skype_events.c @@ -1025,7 +1025,7 @@ handle_complete_message(int messagenumber) SkypeMessage *skypemessage = NULL; SkypeChat *chat = NULL; gchar *body_html = NULL; - xmlnode *xmlblob; + xmlnode *xmlblob, *nodi; int i; if (messages_table == NULL) @@ -1077,7 +1077,7 @@ handle_complete_message(int messagenumber) { if (g_str_equal(xmlblob->name, "partlist")) { - for(xmlnode *nodi = xmlnode_get_child(xmlblob, "part"); + for(nodi = xmlnode_get_child(xmlblob, "part"); nodi; nodi = xmlnode_get_next_twin(nodi)) { @@ -1095,6 +1095,13 @@ handle_complete_message(int messagenumber) break; } } + if (skypemessage->type == SKYPE_MESSAGE_OTHER) + { + //Haven't found any 'duration' + g_free(skypemessage->body); + skypemessage->body = g_strdup(_("Call ended")); + skypemessage->type = SKYPE_MESSAGE_TEXT; + } } xmlnode_free(xmlblob); } |