comparison src/protocols/msn/msn.c @ 6059:d8cd876e613e

[gaim-migrate @ 6509] I made a lot of server.c functions use const chat * instead of const * Made the alias entry have focus in the alias buddy dialog. Fixed a typo thanks to J. Silvestri committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 08 Jul 2003 03:36:41 +0000
parents 8c44020a958e
children 82e7eaa67406
comparison
equal deleted inserted replaced
6058:d5f4ae4f9a02 6059:d8cd876e613e
492 492
493 return 1; 493 return 1;
494 } 494 }
495 495
496 static int 496 static int
497 msn_send_typing(GaimConnection *gc, char *who, int typing) 497 msn_send_typing(GaimConnection *gc, const char *who, int typing)
498 { 498 {
499 GaimAccount *account = gaim_connection_get_account(gc); 499 GaimAccount *account = gaim_connection_get_account(gc);
500 MsnSession *session = gc->proto_data; 500 MsnSession *session = gc->proto_data;
501 MsnSwitchBoard *swboard; 501 MsnSwitchBoard *swboard;
502 MsnMessage *msg; 502 MsnMessage *msg;
536 536
537 return MSN_TYPING_SEND_TIMEOUT; 537 return MSN_TYPING_SEND_TIMEOUT;
538 } 538 }
539 539
540 static void 540 static void
541 msn_set_away(GaimConnection *gc, char *state, char *msg) 541 msn_set_away(GaimConnection *gc, const char *state, const char *msg)
542 { 542 {
543 MsnSession *session = gc->proto_data; 543 MsnSession *session = gc->proto_data;
544 const char *away; 544 const char *away;
545 545
546 if (gc->away != NULL) { 546 if (gc->away != NULL) {
634 return; 634 return;
635 } 635 }
636 } 636 }
637 637
638 static void 638 static void
639 msn_rem_buddy(GaimConnection *gc, char *who, char *group) 639 msn_rem_buddy(GaimConnection *gc, const char *who, const char *group)
640 { 640 {
641 MsnSession *session = gc->proto_data; 641 MsnSession *session = gc->proto_data;
642 char outparams[MSN_BUF_LEN]; 642 char outparams[MSN_BUF_LEN];
643 643
644 g_snprintf(outparams, sizeof(outparams), "FL %s", who); 644 g_snprintf(outparams, sizeof(outparams), "FL %s", who);
930 930
931 serv_got_chat_left(gc, id); 931 serv_got_chat_left(gc, id);
932 } 932 }
933 933
934 static int 934 static int
935 msn_chat_send(GaimConnection *gc, int id, char *message) 935 msn_chat_send(GaimConnection *gc, int id, const char *message)
936 { 936 {
937 GaimAccount *account = gaim_connection_get_account(gc); 937 GaimAccount *account = gaim_connection_get_account(gc);
938 MsnSession *session = gc->proto_data; 938 MsnSession *session = gc->proto_data;
939 MsnSwitchBoard *swboard = msn_session_find_switch_with_id(session, id); 939 MsnSwitchBoard *swboard = msn_session_find_switch_with_id(session, id);
940 MsnMessage *msg; 940 MsnMessage *msg;
959 return 0; 959 return 0;
960 } 960 }
961 961
962 msn_message_destroy(msg); 962 msn_message_destroy(msg);
963 963
964 serv_got_chat_in(gc, id, (char *)gaim_account_get_username(account), 964 serv_got_chat_in(gc, id, gaim_account_get_username(account),
965 0, message, time(NULL)); 965 0, message, time(NULL));
966 966
967 return 0; 967 return 0;
968 } 968 }
969 969
1094 b->proto_data = NULL; 1094 b->proto_data = NULL;
1095 } 1095 }
1096 } 1096 }
1097 1097
1098 static void 1098 static void
1099 msn_convo_closed(GaimConnection *gc, char *who) 1099 msn_convo_closed(GaimConnection *gc, const char *who)
1100 { 1100 {
1101 GaimAccount *account = gaim_connection_get_account(gc); 1101 GaimAccount *account = gaim_connection_get_account(gc);
1102 MsnSession *session = gc->proto_data; 1102 MsnSession *session = gc->proto_data;
1103 MsnSwitchBoard *swboard; 1103 MsnSwitchBoard *swboard;
1104 1104