# HG changeset patch # User Mark Doliner # Date 1130992852 0 # Node ID c8b8d4f8d0702c470b30c39be74bb5716a66cdf8 # Parent e094639ab4222659ac81c1ee78850b8e6d476ac1 [gaim-migrate @ 14247] sf patch #1346502, from Levi Bard "Make text repl attach to existing conversations on load" committer: Tailor Script diff -r e094639ab422 -r c8b8d4f8d070 plugins/spellchk.c --- 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);