Changeset 57cf4f9 for functions.c


Ignore:
Timestamp:
Aug 21, 2008, 6:18:51 PM (13 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, debian, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
d5dcd7c
Parents:
7a45a72
Message:
Make owl_function_reply call methods to get the replycmd.

For backwards compatibility, we add default sub replycmd and sub
replysendercmd to BarnOwl::Message, which just return the value of the
property.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    rc4ba74d r57cf4f9  
    21362136    } else {
    21372137      char *cmd;
    2138       if((type==0 && (cmd=owl_message_get_attribute_value(m, "replycmd")))
    2139          || (type==1 && (cmd=owl_message_get_attribute_value(m, "replysendercmd")))) {
    2140         buff = owl_strdup(cmd);
     2138      if((type == 0 &&
     2139          (cmd=owl_perlconfig_message_call_method(m, "replycmd", 0, NULL))) ||
     2140         (type == 1 &&
     2141          (cmd=owl_perlconfig_message_call_method(m, "replysendercmd", 0, NULL)))) {
     2142        buff = cmd;
    21412143      }
    21422144    }
Note: See TracChangeset for help on using the changeset viewer.