Mercurial > pidgin.yaz
comparison src/protocols/silc/ops.c @ 10589:0f7452b1f777
[gaim-migrate @ 11994]
Use GLib 2.6's gstdio functions. This should fix gaim not liking non-ascii filenames in win32.
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 11 Feb 2005 05:10:40 +0000 |
parents | 114d3ac8ff5a |
children | c4cb90065e1d |
comparison
equal
deleted
inserted
replaced
10588:529111933c9c | 10589:0f7452b1f777 |
---|---|
1465 switch (status) { | 1465 switch (status) { |
1466 case SILC_CLIENT_CONN_SUCCESS: | 1466 case SILC_CLIENT_CONN_SUCCESS: |
1467 case SILC_CLIENT_CONN_SUCCESS_RESUME: | 1467 case SILC_CLIENT_CONN_SUCCESS_RESUME: |
1468 gaim_connection_set_state(gc, GAIM_CONNECTED); | 1468 gaim_connection_set_state(gc, GAIM_CONNECTED); |
1469 serv_finish_login(gc); | 1469 serv_finish_login(gc); |
1470 unlink(silcgaim_session_file(gaim_account_get_username(sg->account))); | 1470 g_unlink(silcgaim_session_file(gaim_account_get_username(sg->account))); |
1471 | 1471 |
1472 /* Send any UMODEs configured for account */ | 1472 /* Send any UMODEs configured for account */ |
1473 reject_watch = gaim_account_get_bool(sg->account, "reject-watch", FALSE); | 1473 reject_watch = gaim_account_get_bool(sg->account, "reject-watch", FALSE); |
1474 block_invites = gaim_account_get_bool(sg->account, "block-invites", FALSE); | 1474 block_invites = gaim_account_get_bool(sg->account, "block-invites", FALSE); |
1475 block_ims = gaim_account_get_bool(sg->account, "block-ims", FALSE); | 1475 block_ims = gaim_account_get_bool(sg->account, "block-ims", FALSE); |
1485 | 1485 |
1486 return; | 1486 return; |
1487 break; | 1487 break; |
1488 case SILC_CLIENT_CONN_ERROR: | 1488 case SILC_CLIENT_CONN_ERROR: |
1489 gaim_connection_error(gc, _("Error during connecting to SILC Server")); | 1489 gaim_connection_error(gc, _("Error during connecting to SILC Server")); |
1490 unlink(silcgaim_session_file(gaim_account_get_username(sg->account))); | 1490 g_unlink(silcgaim_session_file(gaim_account_get_username(sg->account))); |
1491 break; | 1491 break; |
1492 | 1492 |
1493 case SILC_CLIENT_CONN_ERROR_KE: | 1493 case SILC_CLIENT_CONN_ERROR_KE: |
1494 gaim_connection_error(gc, _("Key Exchange failed")); | 1494 gaim_connection_error(gc, _("Key Exchange failed")); |
1495 break; | 1495 break; |
1500 | 1500 |
1501 case SILC_CLIENT_CONN_ERROR_RESUME: | 1501 case SILC_CLIENT_CONN_ERROR_RESUME: |
1502 gaim_connection_error(gc, | 1502 gaim_connection_error(gc, |
1503 _("Resuming detached session failed. " | 1503 _("Resuming detached session failed. " |
1504 "Press Reconnect to create new connection.")); | 1504 "Press Reconnect to create new connection.")); |
1505 unlink(silcgaim_session_file(gaim_account_get_username(sg->account))); | 1505 g_unlink(silcgaim_session_file(gaim_account_get_username(sg->account))); |
1506 break; | 1506 break; |
1507 | 1507 |
1508 case SILC_CLIENT_CONN_ERROR_TIMEOUT: | 1508 case SILC_CLIENT_CONN_ERROR_TIMEOUT: |
1509 gaim_connection_error(gc, _("Connection Timeout")); | 1509 gaim_connection_error(gc, _("Connection Timeout")); |
1510 break; | 1510 break; |
1527 { | 1527 { |
1528 GaimConnection *gc = client->application; | 1528 GaimConnection *gc = client->application; |
1529 SilcGaim sg = gc->proto_data; | 1529 SilcGaim sg = gc->proto_data; |
1530 | 1530 |
1531 if (sg->resuming && !sg->detaching) | 1531 if (sg->resuming && !sg->detaching) |
1532 unlink(silcgaim_session_file(gaim_account_get_username(sg->account))); | 1532 g_unlink(silcgaim_session_file(gaim_account_get_username(sg->account))); |
1533 | 1533 |
1534 sg->conn = NULL; | 1534 sg->conn = NULL; |
1535 | 1535 |
1536 /* Close the connection */ | 1536 /* Close the connection */ |
1537 if (!sg->detaching) | 1537 if (!sg->detaching) |
1818 SilcGaim sg = gc->proto_data; | 1818 SilcGaim sg = gc->proto_data; |
1819 const char *file; | 1819 const char *file; |
1820 | 1820 |
1821 /* Save the detachment data to file. */ | 1821 /* Save the detachment data to file. */ |
1822 file = silcgaim_session_file(gaim_account_get_username(sg->account)); | 1822 file = silcgaim_session_file(gaim_account_get_username(sg->account)); |
1823 unlink(file); | 1823 g_unlink(file); |
1824 silc_file_writefile(file, detach_data, detach_data_len); | 1824 silc_file_writefile(file, detach_data, detach_data_len); |
1825 } | 1825 } |
1826 | 1826 |
1827 SilcClientOperations ops = { | 1827 SilcClientOperations ops = { |
1828 silc_say, | 1828 silc_say, |