| 2886 char *sname = g_hash_table_lookup(params, "contact"); |
2886 char *sname = g_hash_table_lookup(params, "contact"); |
| 2887 if (sname) { |
2887 if (sname) { |
| 2888 PurpleConversation *conv = purple_conversations_find_with_account( |
2888 PurpleConversation *conv = purple_conversations_find_with_account( |
| 2889 PURPLE_CONV_TYPE_IM, sname, acct); |
2889 PURPLE_CONV_TYPE_IM, sname, acct); |
| 2890 if (conv == NULL) |
2890 if (conv == NULL) |
| 2891 conv = purple_conversation_new(PURPLE_CONV_TYPE_IM, acct, sname); |
2891 conv = purple_im_conversation_new(acct, sname); |
| 2892 purple_conversation_present(conv); |
2892 purple_conversation_present(conv); |
| 2893 } |
2893 } |
| 2894 /*else |
2894 /*else |
| 2895 **If pidgindialogs_im() was in the core, we could use it here. |
2895 **If pidgindialogs_im() was in the core, we could use it here. |
| 2896 * It is all purple_request_* based, but I'm not sure it really belongs in the core |
2896 * It is all purple_request_* based, but I'm not sure it really belongs in the core |