- Timestamp:
- Oct 17, 2003, 5:16:25 PM (21 years ago)
- Branches:
- master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 836ea3a3
- Parents:
- a053de8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
zephyr.c
rf1e629d rec6ff52 381 381 ZFreeNotice(¬ice); 382 382 if (ret!=ZERR_NONE) { 383 owl_function_ makemsg("Error sending zephyr");383 owl_function_error("Error sending zephyr"); 384 384 return(ret); 385 385 } … … 413 413 414 414 if (retnotice->z_kind == SERVNAK) { 415 owl_function_ makemsg("Authorization failure sending zephyr");415 owl_function_error("Authorization failure sending zephyr"); 416 416 } else if ((retnotice->z_kind != SERVACK) || !retnotice->z_message_len) { 417 owl_function_ makemsg("Detected server failure while receiving acknowledgement");417 owl_function_error("Detected server failure while receiving acknowledgement"); 418 418 } else if (!strcmp(retnotice->z_message, ZSRVACK_SENT)) { 419 419 if (!strcasecmp(retnotice->z_opcode, "ping")) { … … 422 422 !strcasecmp(retnotice->z_class_inst, "personal")) { 423 423 tmp=short_zuser(retnotice->z_recipient); 424 owl_function_ makemsg("Message sent to %s.", tmp);424 owl_function_error("Message sent to %s.", tmp); 425 425 free(tmp); 426 426 } else { 427 owl_function_ makemsg("Message sent to -c %s -i %s\n", retnotice->z_class, retnotice->z_class_inst);427 owl_function_error("Message sent to -c %s -i %s\n", retnotice->z_class, retnotice->z_class_inst); 428 428 } 429 429 } else if (!strcmp(retnotice->z_message, ZSRVACK_NOTSENT)) { 430 430 if (strcasecmp(retnotice->z_class, "message")) { 431 owl_function_ makemsg("Not logged in or not subscribing to class %s, instance %s",431 owl_function_error("Not logged in or not subscribing to class %s, instance %s", 432 432 retnotice->z_class, retnotice->z_class_inst); 433 433 } else { 434 434 tmp = short_zuser(retnotice->z_recipient); 435 owl_function_ makemsg("%s: Not logged in or subscribing to messages.",435 owl_function_error("%s: Not logged in or subscribing to messages.", 436 436 tmp); 437 437 owl_free(tmp); 438 438 } 439 439 } else { 440 owl_function_ makemsg("Internal error on ack (%s)", retnotice->z_message);440 owl_function_error("Internal error on ack (%s)", retnotice->z_message); 441 441 } 442 442 } … … 532 532 ret=ZLocateUser(user,&numlocs,auth?ZAUTH:ZNOAUTH); 533 533 if (ret != ZERR_NONE) { 534 owl_function_ makemsg("Error locating user");534 owl_function_error("Error locating user %s", user); 535 535 } 536 536 … … 568 568 file=fopen(subsfile, "r"); 569 569 if (!file) { 570 owl_function_ makemsg("Error opening file %s", subsfile);570 owl_function_error("Error opening file %s", subsfile); 571 571 owl_free(line); 572 572 return; … … 574 574 while (fgets(buff, LINE, file)!=NULL) { 575 575 if (!strcasecmp(buff, line)) { 576 owl_function_ makemsg("Subscription already present in %s", subsfile);576 owl_function_error("Subscription already present in %s", subsfile); 577 577 owl_free(line); 578 578 return; … … 584 584 file=fopen(subsfile, "a"); 585 585 if (!file) { 586 owl_function_ makemsg("Error opening file %s for writing", subsfile);586 owl_function_error("Error opening file %s for writing", subsfile); 587 587 owl_free(line); 588 588 return; … … 691 691 owl_free(filename); 692 692 if (!file) { 693 owl_function_ makemsg("Error opening zephyr buddy file for append");693 owl_function_error("Error opening zephyr buddy file for append"); 694 694 return; 695 695 }
Note: See TracChangeset
for help on using the changeset viewer.