Changeset 1fe100c


Ignore:
Timestamp:
Jul 30, 2007, 6:47:39 PM (17 years ago)
Author:
Nelson Elhage <nelhage@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:
128171a
Parents:
5763474
Message:
Fix sending to -c message -i personal
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zwrite.c

    rdb2dd3d r1fe100c  
    125125  }
    126126
     127  if (z->class == NULL &&
     128      z->inst == NULL &&
     129      owl_list_get_size(&(z->recips))==0) {
     130    owl_function_error("You must specify a recipient for zwrite");
     131    return(-1);
     132  }
     133
    127134  /* now deal with defaults */
    128135  if (z->class==NULL) z->class=owl_strdup("message");
     
    132139  /* z->message is allowed to stay NULL */
    133140 
    134   if (!strcasecmp(z->class, "message") &&
    135       !strcasecmp(z->inst, "personal") &&
    136       owl_list_get_size(&(z->recips))==0) {
    137     owl_function_error("You must specify a recipient for zwrite");
    138     return(-1);
    139   }
    140 
    141141  /* get a zsig, if not given */
    142142  if (z->zsig==NULL) {
Note: See TracChangeset for help on using the changeset viewer.