Roxen.git / server / base_server / module.pike

version» Context lines:

Roxen.git/server/base_server/module.pike:1: - /* $Id: module.pike,v 1.28 1998/02/04 05:17:56 per Exp $ */ + /* $Id: module.pike,v 1.29 1998/02/06 18:31:56 grubba Exp $ */      #include <module.h>      mapping (string:mixed *) variables=([]);      object this = this_object();   int module_type;   string fix_cvs(string from)   {    from = replace(from, ({ "$", "Id: "," Exp $" }), ({"","",""}));
Roxen.git/server/base_server/module.pike:393:    {    switch(lower_case(type))    {    case "allowip":    array(string|int) arr;    if (sizeof(arr = (value/"/")) == 2) {    // IP/bits    arr[1] = (int)arr[1];    patterns += ({ ({ MOD_ALLOW, IP_with_mask(@arr) }) });    } else if ((sizeof(arr = (value/":")) == 2) || -  (sizeof(arr = (value/",")))) { +  (sizeof(arr = (value/",")) > 1)) {    // IP:mask or IP,mask    patterns += ({ ({ MOD_ALLOW, IP_with_mask(@arr) }) });    } else {    // Pattern    value = replace(value, ({ "?", ".", "*" }), ({ ".", "\\.", ".*" }));    patterns += ({ ({ MOD_ALLOW, Regexp(value)->match, }) });    }    break;       case "denyip":    array(string|int) arr;    if (sizeof(arr = (value/"/")) == 2) {    // IP/bits    arr[1] = (int)arr[1];    patterns += ({ ({ MOD_DENY, IP_with_mask(@arr) }) });    } else if ((sizeof(arr = (value/":")) == 2) || -  (sizeof(arr = (value/",")))) { +  (sizeof(arr = (value/",")) > 1)) {    // IP:mask or IP,mask    patterns += ({ ({ MOD_DENY, IP_with_mask(@arr) }) });    } else {    // Pattern    value = replace(value, ({ "?", ".", "*" }), ({ ".", "\\.", ".*" }));    patterns += ({ ({ MOD_DENY, Regexp(value)->match, }) });    }    break;       case "allowuser":