aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVMiklos <vmiklos@frugalware.org>2007-08-20 20:50:25 +0200
committerVMiklos <vmiklos@frugalware.org>2007-08-20 20:50:25 +0200
commit62bb4e49d4066e7505ee784b404c676906a1ca09 (patch)
tree1e420f495e50f1db4a3c16f1875e2211fa76895f
parent72f697b0e0ea9671f9182a8364d2bf1e97b002b8 (diff)
mark received messages as read so that skype won't say there are unread messages
-rw-r--r--skype/README8
-rw-r--r--skype/skype.c2
2 files changed, 6 insertions, 4 deletions
diff --git a/skype/README b/skype/README
index aa32b48e..188ba933 100644
--- a/skype/README
+++ b/skype/README
@@ -80,13 +80,13 @@ NOTE: the <pass> option is not used currently.
- Receiving away status changes
-- skyped (the tcp daemon that is a gateway between Skype and tcp)
+- `skyped` (the tcp daemon that is a gateway between Skype and tcp)
-- Error handling when skyped is not running and when it exists
+- Error handling when `skyped` is not running and when it exits
-== What needs to be done (aka. TODO)
+- Marking received messages as seen so that Skype won't say there are unread messages
-- mark received messages as read so that skype won't say there are unread messages
+== What needs to be done (aka. TODO)
- Away status changes (send)
diff --git a/skype/skype.c b/skype/skype.c
index e1837063..18849fca 100644
--- a/skype/skype.c
+++ b/skype/skype.c
@@ -136,6 +136,8 @@ static gboolean skype_read_callback( gpointer data, gint fd, b_input_condition c
skype_write( ic, buf, strlen( buf ) );
g_snprintf(buf, 1024, "GET CHATMESSAGE %s BODY\n", id);
skype_write( ic, buf, strlen( buf ) );
+ g_snprintf(buf, 1024, "SET CHATMESSAGE %s SEEN\n", id);
+ skype_write( ic, buf, strlen( buf ) );
}
else if(!strncmp(info, "FROM_HANDLE ", 12))
{