Roxen.git / server / plugins / protocols / prot_hilfe.pike

version» Context lines:

Roxen.git/server/plugins/protocols/prot_hilfe.pike:110:    break;    case 1:    misc->trace_enter = debug_trace_enter_1;    misc->trace_leave = debug_trace_leave_1;    break;    default:    misc->trace_enter = debug_trace_enter_2;    misc->trace_leave = debug_trace_leave_2;    break;    } -  return this_object(); +  return this;    }       this_program set_path( string f )    {    raw_url = Roxen.http_encode_string( f );    if( strlen( f ) > 5 )    {    string a;    switch( f[1] )    {
Roxen.git/server/plugins/protocols/prot_hilfe.pike:137:    // intentional fall-through    case '(':    if(strlen(f) && sscanf(f, "/(%s)/%s", a, f)==2)    {    prestate = (multiset)( a/","-({""}) );    f = "/"+f;    }    }    }    not_query = Roxen.simplify_path( scan_for_query( f ) ); -  return this_object(); +  return this;    }       this_program set_url( string url )    {    Configuration c;    foreach(core->urls; string u; mixed q )    {    if( glob( u+"*", url ) ) -  if( (c=q->port->find_configuration_for_url(url, this_object(), 1)) ) +  if( (c=q->port->find_configuration_for_url(url, this, 1)) )    {    conf = c;    break;    }    }       if(!c)    {    // pass 2: Find a configuration with the 'default' flag set.    foreach( core->configurations, c )
Roxen.git/server/plugins/protocols/prot_hilfe.pike:170:    break;    }    else    c = 0;    }    if(!c)    {    // pass 3: No such luck. Let's allow default fallbacks.    foreach( core->urls; string u; mixed q )    { -  if( (c=q->port->find_configuration_for_url(url, this_object(), 1)) ) +  if( (c=q->port->find_configuration_for_url(url, this, 1)) )    {    conf = c;    break;    }    }    }       string host;    sscanf( url, "%s://%s/%s", prot, host, url );    misc->host = host;
Roxen.git/server/plugins/protocols/prot_hilfe.pike:196:    {    mixed query( string what ) { return 0; }    void first_try( RequestID id )    {    if(catch    {    rl->readline->write( sprintf("Request for %s in %O from %s\n",    id->not_query, id->conf, id->remoteaddr),1);    })    { -  id->conf->pri[4]->first_modules -= ({ this_object() }); +  id->conf->pri[4]->first_modules -= ({ this });    id->conf->invalidate_cache();    }    }    }       class CommandDebug {    inherit Tools.Hilfe.Command;    string help(string what) { return "Debug ChiliMoon"; }       void exec(Tools.Hilfe.Evaluator e, string line, array(string) words,
Roxen.git/server/plugins/protocols/prot_hilfe.pike:361:    if( time()-last_update > 5 )    error( "Too long evaluation\n" );    }       void begone()    {    catch(fd->write("\nBye\n"));    catch(fd->close());    catch(destruct( fd ));    catch(destruct( handler )); -  catch(destruct( this_object() )); +  catch(destruct( this ));    }       void write_more()    {    }       int n;    static void init2( )    {    if( rl->readline )
Roxen.git/server/plugins/protocols/prot_hilfe.pike:400:    my_conf = cc;    fd = f;    rl = Readline( f, got_user_line, 0, begone, 0 );    call_out( init2, 0.1 );    }   }      void create( mixed ... args )   {    core.add_permission( "Hilfe", "Hilfe" ); -  core.set_up_hilfe_variables( this_object() ); +  core.set_up_hilfe_variables( this );    requesthandler = Connection;    ::create( @args );   }