# HG changeset patch # User Christian Hammond # Date 1078101331 0 # Node ID bd16ed85cfc2846e4601e307f6f77c05f0a46b2e # Parent e50b2e83b91cd64db5e4c14a9c7083b5ff749ca8 [gaim-migrate @ 9099] This really isn't important. I just want to clean this up. committer: Tailor Script diff -r e50b2e83b91c -r bd16ed85cfc2 src/protocols/msn/msnslp.c --- 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); diff -r e50b2e83b91c -r bd16ed85cfc2 src/protocols/msn/switchboard.c --- 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