pidgin: 3498a499: disapproval of revision 'ae37fe6b64c3070...

evands at pidgin.im evands at pidgin.im
Mon Apr 28 23:10:42 EDT 2008


-----------------------------------------------------------------
Revision: 3498a4993b3d552319e5122278d620287093fd20
Ancestor: ae37fe6b64c30704715a369df88bd76674a39b1a
Author: evands at pidgin.im
Date: 2008-04-29T03:08:32
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/3498a4993b3d552319e5122278d620287093fd20

Modified files:
        libpurple/conversation.c libpurple/protocols/jabber/chat.c
        libpurple/protocols/jabber/presence.c libpurple/server.c
        libpurple/server.h

ChangeLog: 

disapproval of revision 'ae37fe6b64c30704715a369df88bd76674a39b1a'
-------------- next part --------------
============================================================
--- libpurple/conversation.c	933fb27de584a3aee0c80c0a9b68d9e0c2e5fbbf
+++ libpurple/conversation.c	17b8b84a715854e1cab3ba81023f83cbebcc4399
@@ -2368,12 +2368,6 @@ purple_conversations_init(void)
 						 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,
============================================================
--- libpurple/protocols/jabber/chat.c	90097e85bdd98211f5ca7fbddc868421ef38586e
+++ libpurple/protocols/jabber/chat.c	922040aed6450ac224b540538183be49daf143d6
@@ -222,39 +222,33 @@ void jabber_chat_join(PurpleConnection *
 	if(!handle)
 		handle = js->user->node;
 
-	tmp = g_strdup_printf("%s@%s", room, server);
-	room_jid = g_strdup(jabber_normalize(NULL, tmp));
-	g_free(tmp);
-
 	if(!jabber_nodeprep_validate(room)) {
 		char *buf = g_strdup_printf(_("%s is not a valid room name"), room);
 		purple_notify_error(gc, _("Invalid Room Name"), _("Invalid Room Name"),
 				buf);
-		serv_got_join_chat_failed(gc, room_jid);
-		g_free(room_jid);
 		g_free(buf);
 		return;
 	} else if(!jabber_nameprep_validate(server)) {
 		char *buf = g_strdup_printf(_("%s is not a valid server name"), server);
 		purple_notify_error(gc, _("Invalid Server Name"),
 				_("Invalid Server Name"), buf);
-		serv_got_join_chat_failed(gc, room_jid);
-		g_free(room_jid);
 		g_free(buf);
 		return;
 	} else if(!jabber_resourceprep_validate(handle)) {
 		char *buf = g_strdup_printf(_("%s is not a valid room handle"), handle);
 		purple_notify_error(gc, _("Invalid Room Handle"),
 				_("Invalid Room Handle"), buf);
-		serv_got_join_chat_failed(gc, room_jid);
 		g_free(buf);
-		g_free(room_jid);
 		return;
 	}
 
 	if(jabber_chat_find(js, room, server))
 		return;
 
+	tmp = g_strdup_printf("%s@%s", room, server);
+	room_jid = g_strdup(jabber_normalize(NULL, tmp));
+	g_free(tmp);
+
 	chat = g_new0(JabberChat, 1);
 	chat->js = gc->proto_data;
 
============================================================
--- libpurple/protocols/jabber/presence.c	b89e6907bcb37fac8a1c33283a14bc5e0d13aabb
+++ libpurple/protocols/jabber/presence.c	2b0f7846f1356123376598e49a935328b8921248
@@ -575,7 +575,6 @@ void jabber_presence_parse(JabberStream 
 					serv_got_chat_left(js->gc, chat->id);
 			} else {
 				title = g_strdup_printf(_("Error joining chat %s"), from);
-				serv_got_join_chat_failed(js->gc, room_jid);
 			}
 			purple_notify_error(js->gc, title, title, msg);
 			g_free(title);
============================================================
--- libpurple/server.c	8722e6ec363280c9b4b9f071e20fac61f97fa8d0
+++ libpurple/server.c	6f8e729ec6c6920f6ea090d8778bc2814c76f132
@@ -967,12 +967,6 @@ void serv_got_chat_left(PurpleConnection
 	purple_signal_emit(purple_conversations_get_handle(), "chat-left", conv);
 }
 
-void serv_got_join_chat_failed(PurpleConnection *gc, const char *name)
-{
-	purple_signal_emit(purple_conversations_get_handle(), "chat-join-failed",
-					gc, name);
-}
-
 void serv_got_chat_in(PurpleConnection *g, int id, const char *who,
 					  PurpleMessageFlags flags, const char *message, time_t mtime)
 {
============================================================
--- libpurple/server.h	ecf4a59541e6dd4dd85c1ec0f75e413f627b7279
+++ libpurple/server.h	28c75b20775231ef3c25d445bcf7a748bde04ae5
@@ -166,15 +166,6 @@ PurpleConversation *serv_got_joined_chat
 
 PurpleConversation *serv_got_joined_chat(PurpleConnection *gc,
 									   int id, const char *name);
-/**
- * Called by a prpl when an attempt to join a chat via serv_join_chat()
- * fails.
- *
- * @param gc      The connection on which chat joining failed
- * @param name    The name of the chat which we did not join
- */
-void serv_got_join_chat_failed(PurpleConnection *gc, const char *name);
-	
 void serv_got_chat_left(PurpleConnection *g, int id);
 void serv_got_chat_in(PurpleConnection *g, int id, const char *who,
 					  PurpleMessageFlags flags, const char *message, time_t mtime);


More information about the Commits mailing list