| 950 } |
950 } |
| 951 |
951 |
| 952 void |
952 void |
| 953 pidgin_dialogs_im_with_user(PurpleAccount *account, const char *username) |
953 pidgin_dialogs_im_with_user(PurpleAccount *account, const char *username) |
| 954 { |
954 { |
| 955 PurpleConversation *conv; |
955 PurpleIMConversation *im; |
| 956 |
956 |
| 957 g_return_if_fail(account != NULL); |
957 g_return_if_fail(account != NULL); |
| 958 g_return_if_fail(username != NULL); |
958 g_return_if_fail(username != NULL); |
| 959 |
959 |
| 960 conv = purple_conversations_find_im_with_account(username, account); |
960 im = purple_conversations_find_im_with_account(username, account); |
| 961 |
961 |
| 962 if (conv == NULL) |
962 if (im == NULL) |
| 963 conv = purple_im_conversation_new(account, username); |
963 im = purple_im_conversation_new(account, username); |
| 964 |
964 |
| 965 pidgin_conv_attach_to_conversation(conv); |
965 pidgin_conv_attach_to_conversation(PURPLE_CONVERSATION(im)); |
| 966 purple_conversation_present(conv); |
966 purple_conversation_present(PURPLE_CONVERSATION(im)); |
| 967 } |
967 } |
| 968 |
968 |
| 969 static gboolean |
969 static gboolean |
| 970 pidgin_dialogs_ee(const char *ee) |
970 pidgin_dialogs_ee(const char *ee) |
| 971 { |
971 { |