Mercurial > pidgin
diff src/protocols/msn/switchboard.c @ 11338:17142948653e
[gaim-migrate @ 13551]
Change the GAIM_CONV_IM and GAIM_CONV_CHAT enums to GAIM_CONV_TYPE_IM
and GAIM_CONV_TYPE_CHAT. This touched A LOT of files. Also combined
two oscar header files (one of them was small and dorky).
committer: Tailor Script <tailor@pidgin.im>
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Thu, 25 Aug 2005 02:33:44 +0000 |
| parents | 95fa774d216d |
| children | 922782381027 |
line wrap: on
line diff
--- a/src/protocols/msn/switchboard.c Thu Aug 25 00:27:12 2005 +0000 +++ b/src/protocols/msn/switchboard.c Thu Aug 25 02:33:44 2005 +0000 @@ -232,7 +232,7 @@ } if ((swboard->conv != NULL) && - (gaim_conversation_get_type(swboard->conv) == GAIM_CONV_CHAT)) + (gaim_conversation_get_type(swboard->conv) == GAIM_CONV_TYPE_CHAT)) { gaim_conv_chat_add_user(GAIM_CONV_CHAT(swboard->conv), user, NULL, GAIM_CBFLAGS_NONE, TRUE); @@ -240,7 +240,7 @@ else if (swboard->current_users > 1 || swboard->total_users > 1) { if (swboard->conv == NULL || - gaim_conversation_get_type(swboard->conv) != GAIM_CONV_CHAT) + gaim_conversation_get_type(swboard->conv) != GAIM_CONV_TYPE_CHAT) { GList *l; @@ -290,8 +290,8 @@ } else if (swboard->conv == NULL) { - /* XXX - I think this should probably be GAIM_CONV_CHAT, but I'm hedging */ - swboard->conv = gaim_find_conversation_with_account(GAIM_CONV_ANY, + /* XXX - I think this should probably be GAIM_CONV_TYPE_CHAT, but I'm hedging */ + swboard->conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_ANY, user, account); } else @@ -314,8 +314,8 @@ account = swboard->session->account; - /* XXX - I think this should probably be GAIM_CONV_IM, but I'm hedging */ - return gaim_find_conversation_with_account(GAIM_CONV_IM, + /* XXX - I think this should probably be GAIM_CONV_TYPE_IM, but I'm hedging */ + return gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, swboard->im_user, account); } @@ -650,7 +650,7 @@ msn_switchboard_destroy(swboard); } else if ((swboard->current_users > 1) || - (gaim_conversation_get_type(swboard->conv) == GAIM_CONV_CHAT)) + (gaim_conversation_get_type(swboard->conv) == GAIM_CONV_TYPE_CHAT)) { /* This is a switchboard used for a chat */ gaim_conv_chat_remove_user(GAIM_CONV_CHAT(swboard->conv), user, NULL); @@ -862,7 +862,7 @@ if (swboard->current_users > 1 || ((swboard->conv != NULL) && - gaim_conversation_get_type(swboard->conv) == GAIM_CONV_CHAT)) + gaim_conversation_get_type(swboard->conv) == GAIM_CONV_TYPE_CHAT)) { /* If current_users is always ok as it should then there is no need to * check if this is a chat. */ @@ -883,7 +883,7 @@ serv_got_im(gc, passport, body_final, 0, time(NULL)); if (swboard->conv == NULL) { - swboard->conv = gaim_find_conversation_with_account(GAIM_CONV_IM, + swboard->conv = gaim_find_conversation_with_account(GAIM_CONV_TYPE_IM, passport, gaim_connection_get_account(gc)); swboard->flag |= MSN_SB_FLAG_IM; }
