[gaim-migrate @ 14247]

Thu, 03 Nov 2005 04:40:52 +0000

author
Levi Bard <levi@bard.sytes.net>
date
Thu, 03 Nov 2005 04:40:52 +0000
changeset 11956
a1b6da291ab5
parent 11955
5a4437eed68e
child 11957
b96d94eac486

[gaim-migrate @ 14247]
sf patch #1346502, from Levi Bard
"Make text repl attach to existing conversations on load"

committer: Mark Doliner <markdoliner@pidgin.im>

plugins/spellchk.c file | annotate | diff | comparison | revisions
--- a/plugins/spellchk.c	Wed Nov 02 13:43:50 2005 +0000
+++ b/plugins/spellchk.c	Thu Nov 03 04:40:52 2005 +0000
@@ -1922,9 +1922,16 @@
 plugin_load(GaimPlugin *plugin)
 {
 	void *conv_handle = gaim_conversations_get_handle();
+	GList *convs;
 
 	load_conf();
 
+	/* Attach to existing conversations */
+	for (convs = gaim_get_conversations(); convs != NULL; convs = convs->next)
+	{
+		spellchk_new_attach((GaimConversation *)convs->data);
+	}
+
 	gaim_signal_connect(conv_handle, "conversation-created",
 			    plugin, GAIM_CALLBACK(spellchk_new_attach), NULL);
 

mercurial