src/conversation.c

changeset 7088
0920bc6160ae
parent 7035
76bca80cd91d
child 7107
903864ff76c3
equal deleted inserted replaced
7087:a572c156a178 7088:0920bc6160ae
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

mercurial