Changeset be97670


Ignore:
Timestamp:
Oct 12, 2002, 10:50:50 AM (22 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
d023c25
Parents:
68b41b0
Message:
Hack off the local realm for the default outgoing message
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • message.c

    r68b41b0 rbe97670  
    485485
    486486void _owl_message_make_text_from_zwriteline_standard(owl_message *m) {
    487   char *indent, *text, *zsigbuff;
     487  char *indent, *text, *zsigbuff, *foo;
    488488
    489489  text=owl_message_get_body(m);
     
    494494  owl_fmtext_append_normal(&(m->fmtext), OWL_TABSTR);
    495495  owl_fmtext_append_normal(&(m->fmtext), "Zephyr sent to ");
    496   owl_fmtext_append_normal(&(m->fmtext), owl_message_get_recipient(m));
     496  foo=short_zuser(owl_message_get_recipient(m));
     497  owl_fmtext_append_normal(&(m->fmtext), foo);
     498  owl_free(foo);
    497499  owl_fmtext_append_normal(&(m->fmtext), "  (Zsig: ");
    498500
  • util.c

    r486688f rbe97670  
    399399
    400400char *short_zuser(char *in) {
     401  /* the caller must free the return */
    401402  char *out, *ptr;
    402  
    403   /* the caller must free the return */
     403
    404404  out=owl_strdup(in);
    405405  ptr=strchr(out, '@');
     
    414414
    415415char *long_zuser(char *in) {
     416  /* the caller must free the return */
    416417  char *ptr;
    417418
    418   /* the caller must free the return */
    419419  if (NULL != (ptr=strchr(in, '@'))) {
    420420    return owl_strdup(in);
Note: See TracChangeset for help on using the changeset viewer.