|
File MattsModsMin.diff, 2.3 KB
(added by matt, 3 years ago)
|
|
Patch file for my changes
|
-
|
|
|
|
| 297 | 297 | const char *info) |
| 298 | 298 | { |
| 299 | 299 | PurpleConnection *gc; |
| | 300 | PurpleConnectionError reason; |
| 300 | 301 | char *msg; |
| 301 | 302 | |
| 302 | 303 | gc = purple_account_get_connection(session->account); |
| … |
… |
|
| 314 | 315 | // msg = g_strdup(_("Error parsing HTTP.")); |
| 315 | 316 | // break; |
| 316 | 317 | case NATEON_ERROR_SIGN_OTHER: |
| | 318 | reason = PURPLE_CONNECTION_ERROR_NAME_IN_USE; |
| 317 | 319 | gc->wants_to_die = TRUE; |
| 318 | 320 | msg = g_strdup(_("You have signed on from another location.")); |
| 319 | 321 | break; |
| … |
… |
|
| 327 | 329 | // "temporarily.")); |
| 328 | 330 | // break; |
| 329 | 331 | case NATEON_ERROR_AUTH: |
| | 332 | //reason = PURPLE_CONNECTION_ERROR_AUTHENTICATION_FAILED; //TODO: I don't know how to test this, so will comment it out. Matt |
| 330 | 333 | msg = g_strdup_printf(_("Unable to authenticate: %s"), |
| 331 | 334 | (info == NULL ) ? |
| 332 | 335 | _("Unknown error") : info); |
| … |
… |
|
| 342 | 345 | } |
| 343 | 346 | |
| 344 | 347 | nateon_session_disconnect(session); |
| 345 | | |
| 346 | | purple_connection_error(gc, msg); |
| 347 | | |
| | 348 | if (reason != NULL) |
| | 349 | { |
| | 350 | purple_connection_error_reason(gc, reason, msg); |
| | 351 | } |
| | 352 | else |
| | 353 | { |
| | 354 | purple_connection_error(gc, msg); |
| | 355 | } |
| 348 | 356 | g_free(msg); |
| 349 | 357 | } |
| 350 | 358 | |
-
|
|
|
|
| 528 | 528 | data->gc = gc; |
| 529 | 529 | data->account = buddy->name; |
| 530 | 530 | |
| 531 | | purple_request_input(gc, NULL, buddy->name, NULL, |
| | 531 | purple_request_input(gc, _("Send Memo"), buddy->name, NULL, |
| 532 | 532 | NULL, TRUE, FALSE, NULL, |
| 533 | 533 | _("_Send"), G_CALLBACK(send_memo_cb), |
| 534 | 534 | _("Close"), G_CALLBACK(close_memo_cb), |
| … |
… |
|
| 699 | 699 | /* Can't send more than one file at same time */ |
| 700 | 700 | session = gc->proto_data; |
| 701 | 701 | ret = TRUE; |
| 702 | | for (l = session->xfers; l != NULL; l = l->next) |
| | 702 | |
| | 703 | if (session != NULL) |
| 703 | 704 | { |
| 704 | | NateonXfer *xfer; |
| 705 | | xfer = l->data; |
| 706 | | if (purple_xfer_get_type(xfer->prpl_xfer) == PURPLE_XFER_SEND && |
| 707 | | !strcmp(xfer->who, who)) |
| | 705 | for (l = session->xfers; l != NULL; l = l->next) |
| 708 | 706 | { |
| 709 | | ret = FALSE; |
| 710 | | break; |
| | 707 | NateonXfer *xfer; |
| | 708 | xfer = l->data; |
| | 709 | if (purple_xfer_get_type(xfer->prpl_xfer) == PURPLE_XFER_SEND && |
| | 710 | !strcmp(xfer->who, who)) |
| | 711 | { |
| | 712 | ret = FALSE; |
| | 713 | break; |
| | 714 | } |
| 711 | 715 | } |
| 712 | 716 | } |
| 713 | | |
| 714 | 717 | return ret; |
| 715 | 718 | } |
Download in other formats:
|
|