Roxen.git / server / modules / misc / randomtext.pike

version» Context lines:

Roxen.git/server/modules/misc/randomtext.pike:50:   // whitespace should be converted into a single space. The "second-rule"   // rule has the directive "single-shot", meaning it should only select   // randomly once, but then produce the same result every time it is   // called.   //   // ... any yes, the code for this module is rather messy. It was a   // quick for fun.      inherit "module";    - string version = "$Id: randomtext.pike,v 1.4 2000/07/03 05:35:41 nilsson Exp $"; + string version = "$Id: randomtext.pike,v 1.5 2000/09/10 16:50:31 nilsson Exp $";      #if __ROXEN_VERSION__ < 2.0   #include <module.h>   array register_module()   { return ({ MODULE_PARSER,    "Random Text Generator Module",    ("This module provides a simple way of generating texts on a "    "semi-random basis according to a set of rules. Apart from its "    "amusement value, this can be useful for testing and educational "    "purposes, such as generating small quiz pages or producing "    "many different kinds of input to text processing tags."),    0,    1 });   }   #else - constant module_type = MODULE_PARSER; + constant module_type = MODULE_TAG;   constant module_name = "Random Text Generator Module";   constant module_doc =    "This module provides a simple way of generating texts on a "    "semi-random basis according to a set of rules. Apart from its "    "amusement value, this can be useful for testing and educational "    "purposes, such as generating small quiz pages or producing "    "many different kinds of input for testing text processing tags.";   #endif      mapping text_cache = ([ ]);