Changeset bf70350


Ignore:
Timestamp:
Jan 23, 2012, 6:41:05 PM (10 years ago)
Author:
Anders Kaseorg <andersk@mit.edu>
Branches:
master, release-1.9
Children:
bff1f22
Parents:
d126a19
git-author:
Anders Kaseorg <andersk@mit.edu> (10/13/11 03:03:07)
git-committer:
Anders Kaseorg <andersk@mit.edu> (01/23/12 18:41:05)
Message:
Stop pretending to support zwrite *

‘*’ is not a valid recipient, and pretending that it is just adds more
special cases to get wrong.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Reviewed-by: David Benjamin <davidben@mit.edu>
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • perl/lib/BarnOwl/Message/Zephyr.pm

    redd0be7 rbf70350  
    171171        $class = $self->class;
    172172        $instance = $self->instance;
    173         if ($self->recipient eq '*' || $self->recipient eq '') {
    174             $to = '';
    175         } elsif ($self->recipient =~ /^@/) {
     173        if ($self->recipient eq '' || $self->recipient =~ /^@/) {
    176174            $to = $self->recipient;
    177175        } else {
  • zephyr.c

    rd953ede rbf70350  
    709709  notice.z_class_inst=zstr(instance);
    710710  notice.z_sender=NULL;
    711   if (!strcmp(recipient, "*") || !strcmp(recipient, "@")) {
     711  if (!strcmp(recipient, "@")) {
    712712    notice.z_recipient=zstr("");
    713713    if (*owl_global_get_zsender(&g))
Note: See TracChangeset for help on using the changeset viewer.