Changeset 3ef779b for zwrite.c


Ignore:
Timestamp:
May 26, 2009, 10:32:00 PM (16 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
1e550b2
Parents:
7451af9
git-author:
Alexander W Dehnert <adehnert@mit.edu> (05/25/09 20:19:00)
git-committer:
Nelson Elhage <nelhage@mit.edu> (05/26/09 22:32:00)
Message:
Send instanced pings and give useful error messages

Based on discussion on -c barnowl, switches

zwrite adehnert => ping
zwrite adehnert -i test => no ping
zwrite adehnert -c test => no ping

to

zwrite adehnert => ping
zwrite adehnert -i test => ping
zwrite adehnert -c test => no ping

Pings match the class & instance of the
message they are associated with.

The error message when an instanced personal
fails now includes the instance.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • zwrite.c

    r4b17a6c r3ef779b  
    199199  if (z->noping) return;
    200200 
    201   if (strcasecmp(z->class, "message") ||
    202       strcasecmp(z->inst, "personal")) {
     201  if (strcasecmp(z->class, "message")) {
    203202    return;
    204203  }
     
    213212      to = owl_strdup(owl_list_get_element(&(z->recips), i));
    214213    }
    215     send_ping(to);
     214    send_ping(to, z->class, z->inst);
    216215    owl_free(to);
    217216  }
Note: See TracChangeset for help on using the changeset viewer.