Changeset 91882d6


Ignore:
Timestamp:
Mar 11, 2012, 11:44:39 PM (9 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
release-1.8
Children:
3965ec3d
Parents:
b148387
git-author:
Anders Kaseorg <andersk@mit.edu> (10/13/11 03:03:07)
git-committer:
David Benjamin <davidben@mit.edu> (03/11/12 23:44:39)
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 r91882d6  
    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

    r6a08f16 r91882d6  
    722722  notice.z_class_inst=zstr(instance);
    723723  notice.z_sender=NULL;
    724   if (!strcmp(recipient, "*") || !strcmp(recipient, "@")) {
     724  if (!strcmp(recipient, "@")) {
    725725    notice.z_recipient=zstr("");
    726726    if (*owl_global_get_zsender(&g))
Note: See TracChangeset for help on using the changeset viewer.