Branch: Tag:

2005-02-04

2005-02-04 13:26:34 by Martin Stjernholm <mast@lysator.liu.se>

Added set_default_value to make it easier to inherit roxen modules.

Rev: server/etc/modules/Variable.pmod/module.pmod:1.87

1: - // $Id: module.pmod,v 1.86 2004/10/20 15:40:41 mast Exp $ + // $Id: module.pmod,v 1.87 2005/02/04 13:26:34 mast Exp $      #include <module.h>   #include <roxen.h>
378:    return _initial;    }    +  void set_default_value (mixed to) +  //! Change the default value. If the variable was previously set to +  //! the old default value, this will also change its actual value. +  { +  _initial = to; +  } +     void set_warning( string to )    //! Set the warning shown in the configuration interface    {