Branch: Tag:

1998-02-28

1998-02-28 17:46:30 by Martin Stjernholm <mast@lysator.liu.se>

Update module structure before running module->start() to make
get_modname() work there.

Rev: server/base_server/configuration.pike:1.106

1: - string cvs_version = "$Id: configuration.pike,v 1.105 1998/02/28 14:43:25 js Exp $"; + string cvs_version = "$Id: configuration.pike,v 1.106 1998/02/28 17:46:30 mast Exp $";   #include <module.h>   #include <roxen.h>   
2179:       me->setvars(retrieve(modname + "#" + id, this));    +  if(module->copies) +  module->copies[(int)id] = me; +  else +  module->enabled = me; +  +  otomod[ me ] = modname; +     mixed err;    if((me->start) && (err = catch{    me->start(0, this);
2293:    pri[pr]->first_modules += ({ me });    }    -  if(module->copies) -  module->copies[(int)id] = me; -  else -  module->enabled = me; -  +     hooks_for(module->sname+"#"+id, me);    -  -  otomod[ me ] = modname; +     enabled_modules=retrieve("EnabledModules", this);       if(!enabled_modules[modname+"#"+id])