comparison libpurple/protocols/jabber/libxmpp.c @ 23991:fba7c73c8f02

Fixed a memory error, which was due to me destroying some hashtables in the wrong place... Removed the inclusion of data packets of size < 1024 directly in <message/> stanzas. The reason for this is there could be a lot of small smileys in one message. Thus hitting stanza limits. So rather than trying to keep track of the overall size, I let the receiver always request data it hasn't cached. Put back creation of the PurpleConversation when sening a message if purple_find_conversation_with_account returns NULL. This is needed for purple_conv_custom_smiley_add
author Marcus Lundblad <ml@update.uu.se>
date Mon, 08 Sep 2008 20:48:16 +0000
parents 305fac6af8f9
children f763be370afb 8e7e6f60e053 53b073da65ee 9ab681f23007 4d752d07a126
comparison
equal deleted inserted replaced
23990:0952f73a452c 23991:fba7c73c8f02
135 135
136 purple_signal_register(plugin, "jabber-sending-text", 136 purple_signal_register(plugin, "jabber-sending-text",
137 purple_marshal_VOID__POINTER_POINTER, NULL, 2, 137 purple_marshal_VOID__POINTER_POINTER, NULL, 2,
138 purple_value_new(PURPLE_TYPE_SUBTYPE, PURPLE_SUBTYPE_CONNECTION), 138 purple_value_new(PURPLE_TYPE_SUBTYPE, PURPLE_SUBTYPE_CONNECTION),
139 purple_value_new_outgoing(PURPLE_TYPE_STRING)); 139 purple_value_new_outgoing(PURPLE_TYPE_STRING));
140
141 jabber_data_uninit();
142 140
143 return TRUE; 141 return TRUE;
144 } 142 }
145 143
146 static gboolean unload_plugin(PurplePlugin *plugin) 144 static gboolean unload_plugin(PurplePlugin *plugin)
148 purple_signal_unregister(plugin, "jabber-receiving-xmlnode"); 146 purple_signal_unregister(plugin, "jabber-receiving-xmlnode");
149 147
150 purple_signal_unregister(plugin, "jabber-sending-xmlnode"); 148 purple_signal_unregister(plugin, "jabber-sending-xmlnode");
151 149
152 purple_signal_unregister(plugin, "jabber-sending-text"); 150 purple_signal_unregister(plugin, "jabber-sending-text");
151
152 jabber_data_uninit();
153 153
154 return TRUE; 154 return TRUE;
155 } 155 }
156 156
157 static PurplePluginInfo info = 157 static PurplePluginInfo info =