Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zephyr.c

    r987cf3f r8ab1f28  
    179179{
    180180#ifdef HAVE_LIBZEPHYR
    181   if(owl_global_is_havezephyr(&g))
    182     return(ZPending());
     181  Code_t code;
     182  if(owl_global_is_havezephyr(&g)) {
     183    if((code = ZPending()) < 0) {
     184      owl_function_debugmsg("Error (%s) in ZPending()\n",
     185                            error_message(code));
     186      return 0;
     187    }
     188    return code;
     189  }
    183190#endif
    184191  return 0;
     
    258265
    259266  if (stat(subsfile, &statbuff) != 0) {
    260     owl_free(subsfile);
    261267    if (error_on_nofile == 1)
    262268      return -1;
     
    374380  subsfile = owl_zephyr_dotfile(".anyone", filename);
    375381
    376   if (stat(subsfile, &statbuff) == -1) {
    377     owl_free(subsfile);
     382  if (stat(subsfile, &statbuff) == -1)
    378383    return 0;
    379   }
    380384
    381385  ZResetAuthentication();
     
    852856  char *tmpbuff, *myuser, *to;
    853857  owl_message *mout;
    854   owl_zwrite *z;
    855858 
    856859  /* bail if it doesn't look like a message we should reply to.  Some
     
    888891  owl_free(to);
    889892
    890   z = owl_zwrite_new(tmpbuff);
    891   owl_zwrite_set_message(z, owl_global_get_zaway_msg(&g));
    892   owl_zwrite_set_zsig(z, "Automated reply:");
    893 
    894893  /* display the message as an admin message in the receive window */
    895   mout=owl_function_make_outgoing_zephyr(z);
     894  mout=owl_function_make_outgoing_zephyr(owl_global_get_zaway_msg(&g), tmpbuff, "Automated reply:");
    896895  owl_global_messagequeue_addmsg(&g, mout);
    897896  owl_free(tmpbuff);
    898   owl_zwrite_delete(z);
    899897#endif
    900898}
     
    13971395#ifdef HAVE_LIBZEPHYR
    13981396  ZNotice_t notice;
     1397  Code_t code;
    13991398  owl_message *m=NULL;
    14001399
    14011400  while(owl_zephyr_zpending() && zpendcount < OWL_MAX_ZEPHYRGRAMS_TO_PROCESS) {
    14021401    if (owl_zephyr_zpending()) {
    1403       ZReceiveNotice(&notice, NULL);
     1402      if ((code = ZReceiveNotice(&notice, NULL)) != ZERR_NONE) {
     1403        owl_function_debugmsg("Error: %s while calling ZReceiveNotice\n",
     1404                              error_message(code));
     1405        continue;
     1406      }
    14041407      zpendcount++;
    14051408
Note: See TracChangeset for help on using the changeset viewer.