Changeset debb15d


Ignore:
Timestamp:
Feb 23, 2004, 1:15:41 AM (17 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:
213a3eb
Parents:
e22f27c
Message:
Added 'show license'
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    re22f27c rdebb15d  
    99          affects only AIM messages, later zephyr login/logout messages
    1010          will also be logged if this is set to 'on'
     11        Added 'show license'
    1112       
    12132.1.4
  • commands.c

    r8ba37ec rdebb15d  
    621621              "show keymaps\n"
    622622              "show keymap <keymap>\n"
     623              "show license\n"
    623624              "show startup\n"
    624625              "show status\n"
     
    20992100  } else if (!strcmp(argv[1], "status")) {
    21002101    owl_function_status();
     2102  } else if (!strcmp(argv[1], "license")) {
     2103    owl_function_show_license();
    21012104  } else if (!strcmp(argv[1], "startup")) {
    21022105    char *filename;
  • functions.c

    r4357be8 rdebb15d  
    116116{
    117117  owl_function_help_for_command(name);
     118}
     119
     120void owl_function_show_license()
     121{
     122  char *text;
     123
     124  text=""
     125    "Owl version " OWL_VERSION_STRING "\n"
     126    "Copyright (c) 2004 James Kretchmar. All rights reserved.\n"
     127    "\n"
     128    "Redistribution and use in source and binary forms, with or without\n"
     129    "modification, are permitted provided that the following conditions are\n"
     130    "met:\n"
     131    "\n"
     132    "   * Redistributions of source code must retain the above copyright\n"
     133    "     notice, this list of conditions and the following disclaimer.\n"
     134    "\n"
     135    "   * Redistributions in binary form must reproduce the above copyright\n"
     136    "     notice, this list of conditions and the following disclaimer in\n"
     137    "     the documentation and/or other materials provided with the\n"
     138    "     distribution.\n"
     139    "\n"
     140    "   * Redistributions in any form must be accompanied by information on\n"
     141    "     how to obtain complete source code for the Owl software and any\n"
     142    "     accompanying software that uses the Owl software. The source code\n"
     143    "     must either be included in the distribution or be available for no\n"
     144    "     more than the cost of distribution plus a nominal fee, and must be\n"
     145    "     freely redistributable under reasonable conditions. For an\n"
     146    "     executable file, complete source code means the source code for\n"
     147    "     all modules it contains. It does not include source code for\n"
     148    "     modules or files that typically accompany the major components of\n"
     149    "     the operating system on which the executable file runs.\n"
     150    "\n"
     151    "THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n"
     152    "IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n"
     153    "WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR\n"
     154    "NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE\n"
     155    "LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n"
     156    "CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n"
     157    "SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR\n"
     158    "BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n"
     159    "WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n"
     160    "OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN\n"
     161    "IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n";
     162  owl_function_popless_text(text);
    118163}
    119164
  • logging.c

    re22f27c rdebb15d  
    204204
    205205  /* skip login/logout messages if appropriate */
    206   if (!owl_global_is__loglogins(&g) && owl_message_is_loginout(m)) return;
     206  if (!owl_global_is_loglogins(&g) && owl_message_is_loginout(m)) return;
    207207     
    208208  /* check for nolog */
Note: See TracChangeset for help on using the changeset viewer.