Git-Url:
http://git.frugalware.org/gitweb/gitweb.cgi?p=bitlbee-skype.git;a=commitdiff;h=425c86905075ca2cc6d988ea31e7ad202ea81b39
commit 425c86905075ca2cc6d988ea31e7ad202ea81b39
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date: Wed Oct 17 01:09:09 2007 +0200
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
diff --git a/skype.c b/skype.c
index 3f272e1..e540331 100644
--- a/skype.c
+++ b/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;
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git