diff libpurple/conversation.c @ 22756:17cda378a2dd

Added "chat-join-failed" signal, emitted by a new serv_got_join_chat_failed() function in server.c. This is emitted with the PurpleConnection and chat name and allows a UI or plugin which was expecting a group chat to be joined to know if failure occurred. serv_got_join_chat_failed() is only called by jabber so far; I know that at least oscar should call it some situations, as well, such as when a busted SNAC error is received after trying to join a chat with an invalid room name.
author Evan Schoenberg <evan.s@dreskin.net>
date Tue, 29 Apr 2008 01:46:40 +0000
parents f75509f776cc
children 1517d3c763fc
line wrap: on
line diff
--- a/libpurple/conversation.c	Mon Apr 28 20:10:41 2008 +0000
+++ b/libpurple/conversation.c	Tue Apr 29 01:46:40 2008 +0000
@@ -2368,6 +2368,12 @@
 						 purple_value_new(PURPLE_TYPE_SUBTYPE,
 										PURPLE_SUBTYPE_CONVERSATION));
 
+	purple_signal_register(handle, "chat-join-failed",
+						   purple_marshal_VOID__POINTER_POINTER, NULL, 2,
+						   purple_value_new(PURPLE_TYPE_SUBTYPE,
+										PURPLE_SUBTYPE_CONNECTION),
+						   purple_value_new(PURPLE_TYPE_STRING));
+
 	purple_signal_register(handle, "chat-left",
 						 purple_marshal_VOID__POINTER, NULL, 1,
 						 purple_value_new(PURPLE_TYPE_SUBTYPE,