Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=bitlbee-skype.git;a=commitdiff;h=81c0109193792109565477307c0db6c03aa0bc98

commit 81c0109193792109565477307c0db6c03aa0bc98
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Wed Oct 17 01:09:22 2007 +0200

implement skype_chat_topic()

diff --git a/skype.c b/skype.c
index e540331..4d6dc7b 100644
--- a/skype.c
+++ b/skype.c
@@ -681,6 +681,15 @@ void skype_chat_invite(struct groupchat *gc, char *who, 
char *message)
g_free(nick);
}

+void skype_chat_topic(struct groupchat *gc, char *message)
+{
+       struct im_connection *ic = gc->ic;
+       char *buf;
+       buf = g_strdup_printf("ALTER CHAT %s SETTOPIC %s\n", gc->title, 
message);
+       skype_write( ic, buf, strlen( buf ) );
+       g_free(buf);
+}
+
struct groupchat *skype_chat_with(struct im_connection *ic, char *who)
{
struct skype_data *sd = ic->proto_data;
@@ -715,5 +724,6 @@ void init_plugin(void)
ret->chat_invite = skype_chat_invite;
ret->chat_with = skype_chat_with;
ret->handle_cmp = g_strcasecmp;
+       ret->chat_topic = skype_chat_topic;
register_protocol( ret );
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to