Changeset e7cc1c3 for functions.c


Ignore:
Timestamp:
Jun 27, 2003, 1:03:16 PM (18 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
f562355
Parents:
b278973
Message:
More detailed usage from -h
Special cased replies for webzephyr users on classes and login
  notifications for webzephyr users
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    rce7db4d re7cc1c3  
    17441744
    17451745
     1746/* if type = 0 then normal reply.
     1747 * if type = 1 then it's a reply to sender
     1748 * if enter = 0 then allow the command to be edited
     1749 * if enter = 1 then don't wait for editing
     1750 */
    17461751void owl_function_reply(int type, int enter)
    17471752{
    1748   /* if type = 0 then normal reply.
    1749    * if type = 1 then it's a reply to sender
    1750    * if enter = 0 then allow the command to be edited
    1751    * if enter = 1 then don't wait for editing
    1752    */
    17531753  char *buff, *oldbuff;
    17541754  owl_message *m;
     
    17901790      }
    17911791
     1792      /* if it's a zephyr we sent, send it out the same way again */
    17921793      if (owl_message_is_direction_out(m)) {
    17931794        owl_function_zwrite_setup(owl_message_get_zwriteline(m));
    17941795        owl_global_set_buffercommand(&g, owl_message_get_zwriteline(m));
    17951796        return;
     1797      }
     1798
     1799      /* Special case a personal reply to a webzephyr user on a class */
     1800      if ((type==1) && !strcasecmp(owl_message_get_opcode(m), "webzephyr")) {
     1801        class="webzephyr";
     1802        inst=owl_message_get_sender(m);
     1803        to=OWL_WEBZEPHYR_PRINCIPAL;
     1804      }
     1805
     1806      /* Special case LOGIN/LOGOUT notifications on class "webzephyr" */
     1807      if (!strcasecmp(owl_message_get_class(m), "webzephyr") &&
     1808          owl_message_is_loginout(m)) {
     1809        class="webzephyr";
     1810        inst=owl_message_get_instance(m);
     1811        to=OWL_WEBZEPHYR_PRINCIPAL;
    17961812      }
    17971813     
Note: See TracChangeset for help on using the changeset viewer.