[gaim-migrate @ 17334]

Thu, 21 Sep 2006 21:56:19 +0000

author
Sean Egan <seanegan@pidgin.im>
date
Thu, 21 Sep 2006 21:56:19 +0000
changeset 14668
7922f83d37df
parent 14667
b1577c26d06f
child 14669
df3f48ab4aff

[gaim-migrate @ 17334]
There are a bunch of things we don't send as an xmlnode, so here's a sending-text signal for plugins that care about that

libgaim/protocols/jabber/jabber.c file | annotate | diff | comparison | revisions
--- a/libgaim/protocols/jabber/jabber.c	Thu Sep 21 12:47:44 2006 +0000
+++ b/libgaim/protocols/jabber/jabber.c	Thu Sep 21 21:56:19 2006 +0000
@@ -255,7 +255,9 @@
 
 	/* If we've got a security layer, we need to encode the data,
 	 * splitting it on the maximum buffer length negotiated */
-
+	
+	gaim_signal_emit(my_protocol, "jabber-sending-text", js->gc, data);
+	
 #ifdef HAVE_CYRUS_SASL
 	if (js->sasl_maxbuf>0) {
 		int pos;
@@ -1906,6 +1908,12 @@
 			gaim_value_new(GAIM_TYPE_SUBTYPE, GAIM_SUBTYPE_CONNECTION),
 			gaim_value_new_outgoing(GAIM_TYPE_SUBTYPE, GAIM_SUBTYPE_XMLNODE));
 
+	gaim_signal_register(plugin, "jabber-sending-text",
+			     gaim_marshal_VOID__POINTER_POINTER, NULL, 2,
+			     gaim_value_new(GAIM_TYPE_SUBTYPE, GAIM_SUBTYPE_CONNECTION),
+			     gaim_value_new(GAIM_TYPE_STRING));
+			   
+
 	return TRUE;
 }
 
@@ -1914,7 +1922,9 @@
 	gaim_signal_unregister(plugin, "jabber-receiving-xmlnode");
 
 	gaim_signal_unregister(plugin, "jabber-sending-xmlnode");
-
+	
+	gaim_signal_unregister(plugin, "jabber-sending-text");
+	
 	return TRUE;
 }
 

mercurial