aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVMiklos <vmiklos@frugalware.org>2007-08-21 00:38:06 +0200
committerVMiklos <vmiklos@frugalware.org>2007-08-21 00:38:06 +0200
commit348a3a20a06744d919f7b0bf0d392d30511d50b1 (patch)
treed5c9e3396556767a91b0302267f43e144ed5f4dd
parent98bca363574144c9e488812c61249613fcb5e989 (diff)
use SET USERSTATUS on login/logout
-rw-r--r--skype/README7
-rw-r--r--skype/skype.c3
2 files changed, 7 insertions, 3 deletions
diff --git a/skype/README b/skype/README
index 191c06d7..21d2201e 100644
--- a/skype/README
+++ b/skype/README
@@ -93,13 +93,14 @@ NOTE: the <pass> option is not used currently.
- Set away state when you do a `/away`.
+- When you `account off`, Skype will set status to `Offline`
+
+- When you `account on`, Skype will set status to `Online`
+
== What needs to be done (aka. TODO)
- detect when somebody wants to add us (confirm callback)
-- When you `account off`, Skype will not set status to `Offline`
-- When you `account on`, Skype will not set status to `Online`
-
== I would like to have support for ...
If something does not work and it's not in the TODO section, then please contact me!
diff --git a/skype/skype.c b/skype/skype.c
index 51c95913..88713e47 100644
--- a/skype/skype.c
+++ b/skype/skype.c
@@ -191,6 +191,9 @@ gboolean skype_start_stream( struct im_connection *ic )
buf = g_strdup_printf("SEARCH FRIENDS\n");
st = skype_write( ic, buf, strlen( buf ) );
g_free(buf);
+ buf = g_strdup_printf("SET USERSTATUS ONLINE\n");
+ skype_write( ic, buf, strlen( buf ) );
+ g_free(buf);
return st;
}