aboutsummaryrefslogtreecommitdiffstats
path: root/skype/skype.c
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 /skype/skype.c
parent72f697b0e0ea9671f9182a8364d2bf1e97b002b8 (diff)
mark received messages as read so that skype won't say there are unread messages
Diffstat (limited to 'skype/skype.c')
-rw-r--r--skype/skype.c2
1 files changed, 2 insertions, 0 deletions
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))
{