| 787 gaim_conversation_new(GaimConversationType type, GaimAccount *account, |
787 gaim_conversation_new(GaimConversationType type, GaimAccount *account, |
| 788 const char *name) |
788 const char *name) |
| 789 { |
789 { |
| 790 GaimConversation *conv; |
790 GaimConversation *conv; |
| 791 |
791 |
| 792 if (type == GAIM_CONV_UNKNOWN) |
792 g_return_val_if_fail(type != GAIM_CONV_UNKNOWN, NULL); |
| 793 return NULL; |
793 g_return_val_if_fail(account != NULL, NULL); |
| |
794 g_return_val_if_fail(name != NULL, NULL); |
| 794 |
795 |
| 795 /* Check if this conversation already exists. */ |
796 /* Check if this conversation already exists. */ |
| 796 if ((conv = gaim_find_conversation_with_account(name, account)) != NULL) |
797 if ((conv = gaim_find_conversation_with_account(name, account)) != NULL) |
| 797 return conv; |
798 return conv; |
| 798 |
799 |