Mercurial > pidgin
changeset 8372:bd16ed85cfc2
[gaim-migrate @ 9099]
This really isn't important. I just want to clean this up.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 01 Mar 2004 00:35:31 +0000 |
parents | e50b2e83b91c |
children | 7a58f6f9fc3e |
files | src/protocols/msn/msnslp.c src/protocols/msn/switchboard.c |
diffstat | 2 files changed, 31 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/src/protocols/msn/msnslp.c Mon Mar 01 00:32:13 2004 +0000 +++ b/src/protocols/msn/msnslp.c Mon Mar 01 00:35:31 2004 +0000 @@ -546,6 +546,20 @@ MsnSwitchBoard *swboard = servconn->data; gboolean session_ended = FALSE; +#if 0 + FILE *fp; + size_t len; + char *buf; + + buf = msn_message_to_string(msg, &len); + /* Windows doesn't like Unix paths */ + fp = fopen("/tmp/msn-msg", "ab"); + fwrite(buf, 1, len, fp); + fclose(fp); + + g_free(buf); +#endif + if (swboard->slp_session == NULL) swboard->slp_session = msn_slp_session_new(swboard, FALSE);
--- a/src/protocols/msn/switchboard.c Mon Mar 01 00:32:13 2004 +0000 +++ b/src/protocols/msn/switchboard.c Mon Mar 01 00:35:31 2004 +0000 @@ -128,7 +128,8 @@ if (swboard->chat != NULL) gaim_conv_chat_remove_user(GAIM_CONV_CHAT(swboard->chat), user, NULL); - else { + else + { const char *username; GaimConversation *conv; GaimBuddy *b; @@ -141,22 +142,28 @@ *buf = '\0'; - if (param_count == 2 && atoi(params[1]) == 1) { - if (gaim_prefs_get_bool("/plugins/prpl/msn/conv_timeout_notice")) { + if (param_count == 2 && atoi(params[1]) == 1) + { + if (gaim_prefs_get_bool("/plugins/prpl/msn/conv_timeout_notice")) + { g_snprintf(buf, sizeof(buf), _("The conversation has become inactive " "and timed out.")); } } - else { - if (gaim_prefs_get_bool("/plugins/prpl/msn/conv_close_notice")) { + else + { + if (gaim_prefs_get_bool("/plugins/prpl/msn/conv_close_notice")) + { g_snprintf(buf, sizeof(buf), _("%s has closed the conversation window."), username); } } - if (*buf != '\0' && (conv = gaim_find_conversation_with_account(user, account)) != NULL) { + if (*buf != '\0' && + (conv = gaim_find_conversation_with_account(user, account)) != NULL) + { gaim_conversation_write(conv, NULL, buf, GAIM_MESSAGE_SYSTEM, time(NULL)); } @@ -183,7 +190,8 @@ if (swboard->chat == NULL) { GaimConversation *conv; - conv = gaim_find_conversation_with_account(msn_user_get_passport(swboard->user), account); + conv = gaim_find_conversation_with_account( + msn_user_get_passport(swboard->user), account); swboard->chat = serv_got_joined_chat(gc, ++swboard->chat_id, "MSN Chat"); @@ -638,9 +646,7 @@ char *buf; size_t len; int ret; -#if 0 FILE *fp; -#endif g_return_val_if_fail(swboard != NULL, FALSE); g_return_val_if_fail(msg != NULL, FALSE); @@ -662,8 +668,8 @@ ret = msn_servconn_write(swboard->servconn, buf, len); #if 0 - /* Windows doesn't like Unix paths */ - fp = fopen("/tmp/msn-msg", "wb"); + /* Windows doesn't like Unix paths */ + fp = fopen("/tmp/msn-msg", "ab"); fwrite(buf, 1, len, fp); fclose(fp); #endif