Branch: Tag:

2000-11-20

2000-11-20 07:04:01 by Per Hedbor <ph@opera.com>

Make occurances of [Bug 745 (#745)] less likely

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

1: - // $Id: module.pmod,v 1.31 2000/11/19 23:34:03 nilsson Exp $ + // $Id: module.pmod,v 1.32 2000/11/20 07:04:01 per Exp $      #include <module.h>   #include <roxen.h>
649:    inherit String;    constant type = "Location";    constant width = 50; +  +  array verify_set( string value ) +  { +  if( !strlen( value ) || !((<'~','/'>)[value[-1]]) ) +  return ({ +  "You most likely want an ending '/' on this variable", +  value +  }); +  return ::verify_set( value );    } -  + }      class URL   //! A URL.