Changeset 3617286


Ignore:
Timestamp:
Dec 30, 2007, 8:53:07 PM (17 years ago)
Author:
Alex Vandiver <alexmv@mit.edu>
Branches:
master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
b38b0b2, 61abb18
Parents:
9aba27b
git-author:
Alex Vandiver <alexmv@mit.edu> (12/30/07 20:52:12)
git-committer:
Alex Vandiver <alexmv@mit.edu> (12/30/07 20:53:07)
Message:
Don't conceal subscription errors with the "ok, we added it to the
.zephyr.subs file" message, by not doing the latter if the former
fails.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • commands.c

    rfa4f9c3 r3617286  
    17681768  char *recip="";
    17691769  int temp=0;
     1770  int ret=0;
    17701771 
    17711772  if (argc<3) {
     
    17971798  }
    17981799
    1799   owl_function_subscribe(argv[0], argv[1], recip);
    1800   if (!temp) {
     1800  ret = owl_function_subscribe(argv[0], argv[1], recip);
     1801  if (!temp && !ret) {
    18011802    owl_zephyr_addsub(NULL, argv[0], argv[1], recip);
    18021803  }
  • functions.c

    r3939268 r3617286  
    13381338}
    13391339
    1340 void owl_function_subscribe(char *class, char *inst, char *recip)
     1340int owl_function_subscribe(char *class, char *inst, char *recip)
    13411341{
    13421342  int ret;
     
    13481348    owl_function_makemsg("Subscribed.");
    13491349  }
     1350  return(ret);
    13501351}
    13511352
Note: See TracChangeset for help on using the changeset viewer.