aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2009-01-07 01:31:18 +0100
committerMiklos Vajna <vmiklos@frugalware.org>2009-01-07 01:31:18 +0100
commitb820226f457d35f6f255252dde80106a95231502 (patch)
tree56a6558bcd0ce746d6f6ae91ccb5ae4d474728e0
parent8edfc90fbe2479d7456710139efeab6dc65a9ba5 (diff)
add new skype/skypeconsole_receive setting for receiving raw data on skypeconsole
-rw-r--r--skype/README3
-rw-r--r--skype/skype.c5
2 files changed, 8 insertions, 0 deletions
diff --git a/skype/README b/skype/README
index 6e1cd195..f27f4efd 100644
--- a/skype/README
+++ b/skype/README
@@ -350,6 +350,9 @@ $ skyped -n -d
* then writing `skypeconsole: <command>` will work in the control
channel.
+ * `account set skype/skypeconsole_receive true` will make the
+ `skypeconsole` account dump all the recieved raw traffic for you
+
- If you want to automatically join bookmarked groupchats right after
you logged in, do:
diff --git a/skype/skype.c b/skype/skype.c
index 819e185e..c83e9950 100644
--- a/skype/skype.c
+++ b/skype/skype.c
@@ -286,6 +286,8 @@ static gboolean skype_read_callback(gpointer data, gint fd, b_input_condition co
while ((line = *lineptr)) {
if (!strlen(line))
break;
+ if (set_getbool(&ic->acc->set, "skypeconsole_receive"))
+ imcb_buddy_msg(ic, "skypeconsole", line, 0, 0);
if (!strncmp(line, "USERS ", 6)) {
char **i;
char **nicks;
@@ -1162,6 +1164,9 @@ static void skype_init(account_t *acc)
s = set_add(&acc->set, "skypeconsole", "false", set_eval_bool, acc);
s->flags |= ACC_SET_OFFLINE_ONLY;
+ s = set_add(&acc->set, "skypeconsole_receive", "false", set_eval_bool, acc);
+ s->flags |= ACC_SET_OFFLINE_ONLY;
+
s = set_add(&acc->set, "auto_join", "false", set_eval_bool, acc);
s->flags |= ACC_SET_OFFLINE_ONLY;
}