diff options
author | Miklos Vajna <vmiklos@frugalware.org> | 2007-10-17 01:09:09 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@frugalware.org> | 2007-10-17 01:09:09 +0200 |
commit | d601f9bc64776fc065a3bd7de3ef9d7868895893 (patch) | |
tree | 87b6bdfc2fe2f0cab5006dd7a36402395ac919dc | |
parent | 428592094d725fd3795488e52a88c9abf79da0c0 (diff) |
use the new imcb_chat_topic() function
WARNING: this is not yet in the bitlbee release branch, i'll update the docs
when it'll be there
-rw-r--r-- | skype/skype.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/skype/skype.c b/skype/skype.c index 3f272e1f..e5403318 100644 --- a/skype/skype.c +++ b/skype/skype.c @@ -338,7 +338,7 @@ static gboolean skype_read_callback( gpointer data, gint fd, b_input_condition c else if(!strcmp(sd->type, "SETTOPIC")) { if(gc) - imcb_log(ic, "%s changed the topic of %s to: %s", sd->handle, gc->title, sd->body); + imcb_chat_topic(gc, sd->handle, sd->body); } else if(!strcmp(sd->type, "LEFT")) { @@ -461,6 +461,13 @@ static gboolean skype_read_callback( gpointer data, gint fd, b_input_condition c if(gc) gc->data = (void*)FALSE; } + else if(!strncmp(info, "TOPIC ", 6)) + { + info += 6; + struct groupchat *gc = skype_chat_by_name(ic, id); + if(gc) + imcb_chat_topic(gc, NULL, info); + } else if(!strncmp(info, "ACTIVEMEMBERS ", 14)) { info += 14; |