aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/purple/purple.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-05-02 17:03:41 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2010-05-02 17:03:41 +0100
commit15794dcafac99b2be1c400bc54a510fe61c4ebac (patch)
tree78c451dde420f17bae81eee2cfc92fa182ebfce9 /protocols/purple/purple.c
parent8ad5c34dfc1eff0112f73414fd4b566fae0c9ce3 (diff)
Groupchat support "finished".
Named chatrooms are not supported yet. This only adds support for the "chat with" command and for getting pulled into other people's chats.
Diffstat (limited to 'protocols/purple/purple.c')
-rw-r--r--protocols/purple/purple.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c
index 0f60f630..90312d0d 100644
--- a/protocols/purple/purple.c
+++ b/protocols/purple/purple.c
@@ -448,6 +448,13 @@ void purple_chat_invite( struct groupchat *gc, char *who, char *message )
purple_conv_chat_invite_user( pcc, who, message && *message ? message : "Please join my chat", FALSE );
}
+void purple_chat_leave( struct groupchat *gc, char *who )
+{
+ PurpleConversation *pc = gc->data;
+
+ purple_conversation_destroy( pc );
+}
+
void purple_transfer_request( struct im_connection *ic, file_transfer_t *ft, char *handle );
static void purple_ui_init();
@@ -1071,6 +1078,7 @@ void purple_initmodule()
funcs.chat_msg = purple_chat_msg;
funcs.chat_with = purple_chat_with;
funcs.chat_invite = purple_chat_invite;
+ funcs.chat_leave = purple_chat_leave;
funcs.transfer_request = purple_transfer_request;
help = g_string_new("BitlBee libpurple module supports the following IM protocols:\n");