| 319 } |
319 } |
| 320 |
320 |
| 321 void |
321 void |
| 322 pidgin_dialogs_im_with_user(PurpleAccount *account, const char *username) |
322 pidgin_dialogs_im_with_user(PurpleAccount *account, const char *username) |
| 323 { |
323 { |
| 324 PurpleIMConversation *im; |
324 PurpleConversation *im; |
| 325 |
325 |
| 326 g_return_if_fail(account != NULL); |
326 g_return_if_fail(account != NULL); |
| 327 g_return_if_fail(username != NULL); |
327 g_return_if_fail(username != NULL); |
| 328 |
328 |
| 329 im = purple_conversations_find_im_with_account(username, account); |
329 im = purple_conversations_find_im_with_account(username, account); |
| 330 |
330 |
| 331 if (im == NULL) |
331 if (im == NULL) |
| 332 im = purple_im_conversation_new(account, username); |
332 im = purple_im_conversation_new(account, username); |
| 333 |
333 |
| 334 pidgin_conv_attach_to_conversation(PURPLE_CONVERSATION(im)); |
334 pidgin_conv_attach_to_conversation(im); |
| 335 purple_conversation_present(PURPLE_CONVERSATION(im)); |
335 purple_conversation_present(im); |
| 336 } |
336 } |
| 337 |
337 |
| 338 static gboolean |
338 static gboolean |
| 339 pidgin_dialogs_ee(const char *ee) |
339 pidgin_dialogs_ee(const char *ee) |
| 340 { |
340 { |